-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
HBASE-26840 Fix NPE in the retry of logroller #4224
Conversation
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
@@ -223,8 +223,7 @@ public void run() { | |||
if (waitingTime < rollWaitTimeout && nAttempts < maxRollRetry) { | |||
nAttempts++; | |||
LOG.warn("Retry to roll log, nAttempts={}, waiting time={}ms, sleeping 1s to retry," | |||
+ " last excepiton= {}", nAttempts, waitingTime, | |||
ioe.getCause().getClass().getSimpleName()); | |||
+ " last excepiton= {}", nAttempts, waitingTime, ioe); |
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.
nit: no need to add {}
after last excepiton
, keeping ioe
as the last arg will print the whole Exception stacktrace.
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.
Thanks, I'll remove it.
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit 31cb0b8) Change-Id: I42bb559ba29417f43d17e1db893141656d87b806
No description provided.