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. Also, the config filters for missing tables, which treat the NULL uuid as node deletes is also added Change-Id: I406f9e3d70768151e4390955153bc3176d3da99f closes-bug: #1453956
- Loading branch information
1 parent
71780ac
commit 06b38bc
Showing
5 changed files
with
122 additions
and
13 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
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
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