fix: DH-22426: Disable logback's auto-closing behavior wrt servlets#7958
Open
devinrsmith wants to merge 2 commits intodeephaven:mainfrom
Open
fix: DH-22426: Disable logback's auto-closing behavior wrt servlets#7958devinrsmith wants to merge 2 commits intodeephaven:mainfrom
devinrsmith wants to merge 2 commits intodeephaven:mainfrom
Conversation
…are installed Logback registers an implementation of the service `jakarta.servlet.ServletContainerInitializer` which allows logback to automatically stop when a servlet is stopped. This causes us to lose logging at the end of our shutdown cycle. This PR disables this logic. See https://logback.qos.ch/manual/configuration.html#webShutdownHook
Contributor
No docs changes detected for c4816f7 |
Member
Author
|
Before: After: |
Member
Author
|
Green nightlies. |
cpwright
reviewed
Apr 30, 2026
| // have a logback dependency at this level, our applications that depend on this project typically do. It | ||
| // would probably be "more correct" to have a way for the application main's to set or pass along this property | ||
| // themselves, but there is little harm in setting it here unconditionally (if the slf4j implementation is not | ||
| // logback, this setting will have no effect). |
Contributor
There was a problem hiding this comment.
what about server/jetty-11/src/main/java/io/deephaven/server/jetty11/JettyBackedGrpcServer.java
| Thread newShutdownHookThread() { | ||
| return new Thread(() -> { | ||
| final boolean didInvokeTasks = maybeInvokeTasks(); | ||
| // If some other thread has already invoked maybeInvokeTasks, we still want to block shutdown on completion |
Contributor
There was a problem hiding this comment.
Why do we want the second thread to wait and not just quit if it sin't actually doing any work?
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Logback registers an implementation of the service
jakarta.servlet.ServletContainerInitializerwhich allows logback to automatically stop when a servlet is stopped. This causes us to lose logging at the end of our shutdown cycle. This PR disables this logic.See https://logback.qos.ch/manual/configuration.html#webShutdownHook