-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
YARN-11560. Fix NPE bug when multi-node enabled with schedule asynchronously #6021
Conversation
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
@@ -1737,6 +1737,10 @@ private CSAssignment allocateContainerOnSingleNode( | |||
|
|||
private void allocateFromReservedContainer(FiCaSchedulerNode node, | |||
boolean withNodeHeartbeat, RMContainer reservedContainer) { | |||
if(reservedContainer == null){ | |||
LOG.info("reservedContainer is null,that may be unreserved by the proposal judgment thread"); |
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.
Maybe it is better for waring level log.
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.
Maybe it is better for waring level log.
Thanks for your review,I have updated the patch.
Fix NPE bug when multi-node enabled with schedule asynchronously update reservedContainer null's log info to warn
💔 -1 overall
This message was automatically generated. |
@@ -1737,6 +1737,10 @@ private CSAssignment allocateContainerOnSingleNode( | |||
|
|||
private void allocateFromReservedContainer(FiCaSchedulerNode node, | |||
boolean withNodeHeartbeat, RMContainer reservedContainer) { | |||
if(reservedContainer == null){ | |||
LOG.warn("reservedContainer is null,that may be unreserved by the proposal judgment thread"); |
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
add space after ,
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 for your review and pr updated.
7bd2845
to
056f221
Compare
💔 -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
NPE exception may happend when commit thread calling allocateFromReservedContainer with param reservedContainer ,while the container may be un reserved by the judgment thread in tryCommit->apply function