-
Notifications
You must be signed in to change notification settings - Fork 91
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
CA-400275 Tolerate a restarting fairlock service while connecting #713
CA-400275 Tolerate a restarting fairlock service while connecting #713
Conversation
Is this going to be sufficient? In the failed test case the python process looked it it was stuck in the |
Being stuck in a recv() from a unix-domain socket when the server process has terminated would be an extremely serious kernel bug. |
Well, that what the log said
|
That just means something else had a connection and wasn't letting go of it. The question is: what? |
If the service might be restarted at any time, isn't there a danger that it might restart when one process thinks it is already holding a lock, and then grants the lock to another process? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems fine in and of itself, I'm not sure it will address the original issue but defence in depth against failures is always good.
|
Cope with the case where the fairlock service is restarted while something is in the middle of connecting to it. Signed-off-by: Tim Smith <tim.smith@cloud.com>
748c022
to
61a575b
Compare
Removed the ticket from the commit, since it's not entirely clear what's happening in that instance or whether this fixes it. |
Cope with the case where the fairlock service is restarted while something is in the middle of connecting to it.