-
Notifications
You must be signed in to change notification settings - Fork 3.8k
CASSANDRA-20978 JVMStabilityInspector does not call LoggingSupport#onShutdown() before killing the JVM #4462
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
base: trunk
Are you sure you want to change the base?
CASSANDRA-20978 JVMStabilityInspector does not call LoggingSupport#onShutdown() before killing the JVM #4462
Conversation
maedhroz
left a comment
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.
LGTM...will start a CI run...
|
Just an fyi that I tried to do this a little while ago and started hitting infrequent deadlocks with some stdout/err -> logger rerouting logic we have, that was much too awful to want to try to unpick at the time. We had to rollback the change. Maybe you're already aware of this and have worked around it, but I just wanted to make sure it was known. |
|
@belliottsmith The only out/err redirect issue I can remember seeing recently was CASSANDRA-20698. Do you happen to have any more details? The main thing I tried to make sure we avoided here was the deadlock on OOM issue if we try to shutdown/flush the logging apparatus with no available memory... |
|
I'm afraid I cannot find a reference to it. It was a problem only on an internal branch, but the problem was caused by |
|
Gotcha. I think we've not seen anything like that in our CI runs so far (CC@alanwang67). |
|
I also haven't seen anything like that in our CI runs, though let me take a look at the code path that |
Added an additional parameter to JVM shut down so we can call the logger shutdown from inspectCommitLogError(), handleStartupFSError() and userFunctionTimeout().
patch by Alan Wang;
reviewed by for CASSANDRA-20978
Co-authored-by: Name1
Co-authored-by: Name2