forked from ManageIQ/manageiq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Monitoring Thread to Watch for Worker Shutdown
Added a thread to the VixDiskLibServer to read one end of a pipe that the SmartProxyWorker has opened. When the read returns the worker process has exited so the VixDiskLibServer shuts down. This fixes the BZ https://bugzilla.redhat.com/show_bug.cgi?id=1258985 This fix was implemented in lieu of previous PR ManageIQ#4277 - ManageIQ#4277 which passed SIGTERM from the worker process to the server process. The new implementation will handle any signal that has caused the worker to exit including SIGKILL. The previous PR will be closed. Instead of using an environment variable to let VixDiskLibServer know which FD contains the pipe we are using a known FD. In addition we have changed the previous logic for the other pipe being used by these two processes which is used to hand the DRb URI back to the worker so that it also uses a known FD. Finally we have fixed the retry logic in the worker to read the URI before attempting to establish the DRb connection. The "known FD" and retry logic code come from PR ManageIQ#4318 by @matthewd which will be closed in lieu of this new one.
- Loading branch information
Showing
2 changed files
with
22 additions
and
32 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