Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clearing service instance DB State after STOP command
If Delete of service instance is received before it was marked unusable, to stop the namespace, StopServiceInstance command is issued, which invokes the deletion of the namespace script. And immediately after this, DB state is cleared. Clearing of DB State can result in deleting of service instance DBEntry before namespace script completion. SIGCHILD event after script completion looks for service instance that triggered the task, and results in crash as the service isntance is already deleted. To avoid crash, the DBState is cleared after processing the SIGCHILD event. Also corresponding to the service instance, there can be many tasks queued for execution. To identify how any SIGCHILDS to wait for, running tasks cound is maintained in DBState. This could is manipulated everytime the task is created, destroyed, error handled corresponding to the service instance. Testcases to follow in the next commit Change-Id: I4b9853de271b8ee54016bb91b7a2e199cbce6b0d closes-bug: #1449166 closes-bug: #1453956
- Loading branch information
1 parent
0a11b59
commit abdb26d
Showing
2 changed files
with
63 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters