-
Notifications
You must be signed in to change notification settings - Fork 9.1k
YARN-11843. Fix potential deadlock when auto-correction of container allocation is enabled #7855
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
base: trunk
Are you sure you want to change the base?
Changes from 1 commit
b8c0647
cc6bc5f
29cd1d7
f05899c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -724,9 +724,7 @@ protected void autoCorrectContainerAllocation(List<ResourceRequest> resourceRequ | |
if (extraContainers > 0) { | ||
// Change the state of the container from ALLOCATED to EXPIRED since it is not required. | ||
LOG.debug("Removing extra container:{}", rmContainer.getContainer()); | ||
completedContainer(rmContainer, SchedulerUtils.createAbnormalContainerStatus( | ||
rmContainer.getContainerId(), SchedulerUtils.EXPIRED_CONTAINER), | ||
RMContainerEventType.EXPIRE); | ||
asyncContainerRelease(rmContainer); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will it cause the message at the end of the container to be different? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, the message will be updated from "Container expired since it was unused" to "Container released by application", which I believe is more appropriate. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
No, I think the old is more clear. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For the old one, "expired since it was unused" is not accurate because it was released due to over-allocation, not because the waiting period expired. For the new one, "Container released by application" has been used in different scenarios that actively released by application, I think over-allocation could be included in this scope. @shameersss1 could you please share your thoughts about this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @TaoYang526 +1 |
||
application.newlyAllocatedContainers.remove(rmContainer); | ||
extraContainers--; | ||
} | ||
|
Uh oh!
There was an error while loading. Please reload this page.