-
Notifications
You must be signed in to change notification settings - Fork 902
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
fix AutoCloseableLifecycleComponent close exception log #4042
fix AutoCloseableLifecycleComponent close exception log #4042
Conversation
rerun failure checks |
1 similar comment
rerun failure checks |
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.
Make sense.
rerun failure checks |
@StevenLuMT @eolivelli @zymap PTAL |
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.
Some other places also need tune.
bookkeeper/bookkeeper-server/src/main/java/org/apache/bookkeeper/server/EmbeddedServer.java
Line 298 in 3bf08fe
log.info("Load lifecycle component : {}", StatsProviderService.class.getName()); |
Thanks. Updated. |
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
Descriptions of the changes in this PR: ### Motivation If closed with exception, the log will always be `failed to close AutoCloseableLifecycleComponent`. It will be better to print the `componentName` instead of the class name. ### Changes Print the `componentName` instead of `AutoCloseableLifecycleComponent` class name if closed with exception (cherry picked from commit 269374f)
Descriptions of the changes in this PR: ### Motivation If closed with exception, the log will always be `failed to close AutoCloseableLifecycleComponent`. It will be better to print the `componentName` instead of the class name. ### Changes Print the `componentName` instead of `AutoCloseableLifecycleComponent` class name if closed with exception (cherry picked from commit 269374f)
Descriptions of the changes in this PR: ### Motivation If closed with exception, the log will always be `failed to close AutoCloseableLifecycleComponent`. It will be better to print the `componentName` instead of the class name. ### Changes Print the `componentName` instead of `AutoCloseableLifecycleComponent` class name if closed with exception
Descriptions of the changes in this PR:
Motivation
If closed with exception, the log will always be
failed to close AutoCloseableLifecycleComponent
. It will be better to print thecomponentName
instead of the class name.Changes
Print the
componentName
instead ofAutoCloseableLifecycleComponent
class name if closed with exception