-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
nsqd: bump go-svc to properly handle SIGTERM #757
Conversation
thanks for the quick fix @judwhite |
will issue a release, since this is a critical fix. |
cc @jehiah |
👍 |
I did some experimentation (in preparation of rolling out a new build which is now running fine in production) and found that this issue is not as serious as it sounds (to someone less familiar with nsqd internals, like me). nsqd 0.3.7 saves its metadata whenever a new channel is created, so even if it fails to save on exit, the topics/channels metadata is pretty much always up-to-date anyway, and new channels persist after an ungraceful restart. |
@ploxiln the problem is that it also won't persist messages in memory to disk |
yeah, that's bad, ignore me 👅 |
for anyone following along at home, please read: https://groups.google.com/forum/#!topic/nsq-users/yOckPLUWi4Q |
@judwhite thinking about this more, particularly the genesis of the regression, it comes down to the fact that this signal handling code shouldn't be part of Applications depending on |
My mistake. |
It's all good, shit happens, I missed it too. Would it be possible to make those changes? |
Yeah, I'll open a PR at |
Fixes #756
Relevant change: judwhite/go-svc@be413dc#diff-2ac5da282c671a5f874701b939d24f13L16
Travis: https://travis-ci.org/judwhite/go-svc/builds/127990343
/cc @mpe