-
Notifications
You must be signed in to change notification settings - Fork 424
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
TEZ-4561: Improve reported exception when DAGAppMaster is shutting down. #365
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
I think we can live with this checkstyle warning, creating an accessor method looks like an overkill to me |
Added a test.
When State is STOPPED
|
This comment was marked as outdated.
This comment was marked as outdated.
🎊 +1 overall
This message was automatically generated. |
@@ -1743,6 +1747,13 @@ public void setQueueName(String queueName) { | |||
} | |||
} | |||
|
|||
private String getShutdownTimeString() { | |||
if (shutdownHandler != null && shutdownHandler.shutdownTime != null) { | |||
return ". The shutdown hook started at " + shutdownHandler.shutdownTime; |
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.
It's strange that this separate string generation method takes care of the closing point of the previous sentence, I believe that should go back to getApplicationACLs
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.
I moved the "." back to the {{getApplicationACLs}}
🎊 +1 overall
This message was automatically generated. |
nit: what about changing shutdownTime to private?
I guess the usage scope of those are similar |
This comment was marked as outdated.
This comment was marked as outdated.
🎊 +1 overall
This message was automatically generated. |
@abstractdog I have changed the variable to private & used setter & getter, there was some FindBugs warning, which I have dodged, lemme know if things look good |
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.
+1
No description provided.