-
Notifications
You must be signed in to change notification settings - Fork 9.2k
[YARN-6483] Add nodes transitioning to DECOMMISSIONING state to the list of updated nodes returned by the Resource Manager as a response to the Application Master heartbeat #289
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
c85b701
Notify affected Application Masters when a node enters DECOMMISSIONIN…
ed2561e
Add decommission timeout field to NodeReport
506f7de
fix TestClientRMService
9a82f31
use xml format for excludes files with timeouts
0ad0508
load dynamic timeout like in hadoop trunk
258e29a
add new NodesListManagerEventType.NODE_DECOMMISSIONING
d881d06
add default implementation for new methods in NodeReport
3d4d0cd
revert unnecessary changes in RMNodeDecommissioningEvent
8705807
add optional NodeUpdateType field to NodeReport
cb503b0
add assertions for NodeReport.getNodeUpdateType
af2bf85
fix boxing-unboxing bug
32c441d
fix checkstyle errors
880a4e6
fix whitespaces
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Hmmm.. don't think we should be sending NODE_USABLE event here.. since technically, it is not usable.
Maybe consider creating a new NODE_DECOMMISSIONING event ?
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 wasn't very sure about using
NODE_USABLE, but while I was making the changes to follow your suggestion, I have found that in the current codeTestRMNodeTransitions.testResourceUpdateOnDecommissioningNodeis asserting thatNodesListManagerEventType.NODE_USABLEis expected for a node that transitions toDECOMMISSIONING. Also, NodesListManagerEventType is transformed into the correspondingRMAppNodeUpdateTypeinNodesListManager.handleto build aRMAppNodeUpdateEventthat is processed inRMAppImpl.processNodeUpdatewhich just uses theRMAppNodeUpdateTypefor logging.So it looks like it is ok to use
NodesListManagerEventType.NODE_USABLEfor nodes in decommissioning state. Do you still think it's worth adding some additional value forNodesListManagerEventTypeandRMAppNodeUpdateType?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 feel we should make intentions explicit - having a separate event type might make the code cleaner and easier to follow - rather than overloading. It could be that the assumption in the testcase is wrong (will have to double check though), in which case - it is perfectly alright to modify the testcasse with the new event.
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.
Makes sense, I have added a new commit for adding a new value
NODE_DECOMMISSIONINGforNodesListManagerEventTypeThere 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 - looking at the patch.. can you also attach a consolidated patch on the JIRA ? So as to kick Jenkins.
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 have just attached the patch. Thanks a lot for taking a look!