-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
HDFS-16138. BlockReportProcessingThread exit doesnt print the acutal stack #3244
Conversation
@@ -5190,7 +5191,7 @@ public void run() { | |||
processQueue(); | |||
} catch (Throwable t) { | |||
ExitUtil.terminate(1, | |||
getName() + " encountered fatal exception: " + t); | |||
getName() + " encountered fatal exception: " + ExceptionUtils.getStackTrace(t)); |
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.
looking at other usage in the Hadoop codebase, it seems to me a better way to print stack trace is to use the logger before exiting through ExitUtil.terminate().
Line 353 in d0dcfc4
LOG.error("Error starting service master", t); |
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 @jojochuang for the quick review & feedback.
I have addressed the changes and pushed the changes. Please review.
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
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. +1 from my side.
… stack (apache#3244). Contributed by Renukaprasad C.
HDFS-16138. BlockReportProcessingThread exit doesnt print the acutal stack