YARN-11848 Reduce the number of apps reported when nodemanager restart #7861
+279
−223
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.
https://issues.apache.org/jira/browse/YARN-11848
Description of PR
when nodemanager restart, there are too many logs like
"2025-03-23 01:53:05,883 WARN [RM Event dispatcher] rmnode.RMNodeImpl (RMNodeImpl.java:handleRunningAppOnNode(791)) - Cannot get RMApp by appId=application_1737511638592_8413719, just added it to finishedApplications list for cleanup"
print in resourcemanager.
when too many nodemanagers are restarted at one time, resourcemanager will be blocked.
I think nodemanager should be able to determine whether an app has fininshed on local and reduce the number of apps reported to resourcemanager.
How was this patch tested?
restart nodemanager and summary the num of app be reported to resourcemanager
For code changes:
only nodemanager