Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing shutdown/program state dumps for SIGUSR2 reload handler #6691

Merged
merged 1 commit into from
Oct 16, 2018

Conversation

dnsmichi
Copy link
Contributor

Credits to @west0rmann finding the issue and providing the initial fix.

Test protocol: #6689 (comment)

fixes #6689
fixes #6592

@dnsmichi dnsmichi added this to the 2.10.1 milestone Oct 16, 2018
@dnsmichi dnsmichi added the bug Something isn't working label Oct 16, 2018
@dnsmichi
Copy link
Contributor Author

This PR also adds a final log message to let the user know when the takeover is exactly happening. @widhalmt FYI.

Credits to @west0rmann finding the issue and providing the initial fix.

fixes #6689
fixes #6592
@dnsmichi dnsmichi force-pushed the bugfix/reload-signal-handler-dump-state-file branch from cd6f455 to af6c8a1 Compare October 16, 2018 10:36
@dnsmichi dnsmichi merged commit c0398ed into master Oct 16, 2018
@dnsmichi dnsmichi deleted the bugfix/reload-signal-handler-dump-state-file branch October 16, 2018 12:05
dnsmichi pushed a commit that referenced this pull request May 3, 2019
This follows the same principle as with the shutdown handler,
and was introduced with the changed reload handling with 2.9.
Previously IsShuttingDown() was sufficient which got set at one
location.

SigUsr2 as handler introduced a new location where m_ShuttingDown
is not necessarily set yet. Since this handler gets called when
l_Restarting is enabled, we'll use this flag to avoid config update
events resulting in object deactivation (object->IsActive() always
returns false).

refs #5996
refs #6691
refs #6970

fixes #7125
dnsmichi pushed a commit that referenced this pull request May 16, 2019
This follows the same principle as with the shutdown handler,
and was introduced with the changed reload handling with 2.9.
Previously IsShuttingDown() was sufficient which got set at one
location.

SigUsr2 as handler introduced a new location where m_ShuttingDown
is not necessarily set yet. Since this handler gets called when
l_Restarting is enabled, we'll use this flag to avoid config update
events resulting in object deactivation (object->IsActive() always
returns false).

refs #5996
refs #6691
refs #6970

fixes #7125

(cherry picked from commit 78e24c5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant