[ https://issues.apache.org/jira/browse/YARN-1651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14738830#comment-14738830 ]
MENG DING commented on YARN-1651: --------------------------------- Hi, [~leftnoteasy] One comment I forgot to post is that we may want to synchronize the RMContainerImpl.getAllocatedResource() call? Because the container resource may be updated at any time, e.g: {code:title=RMContainerImpl.java} @Override public Resource getAllocatedResource() { - return container.getResource(); + try { + readLock.lock(); + return Resources.clone(container.getResource()); + } finally { + readLock.unlock(); + } } {code} > CapacityScheduler side changes to support increase/decrease container > resource. > ------------------------------------------------------------------------------- > > Key: YARN-1651 > URL: https://issues.apache.org/jira/browse/YARN-1651 > Project: Hadoop YARN > Issue Type: Sub-task > Components: resourcemanager, scheduler > Reporter: Wangda Tan > Assignee: Wangda Tan > Attachments: YARN-1651-1.YARN-1197.patch, > YARN-1651-2.YARN-1197.patch, YARN-1651-3.YARN-1197.patch, > YARN-1651-4.YARN-1197.patch, YARN-1651-5.YARN-1197.patch > > -- This message was sent by Atlassian JIRA (v6.3.4#6332)