[ https://issues.apache.org/jira/browse/FLINK-7076?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16237750#comment-16237750 ]
ASF GitHub Bot commented on FLINK-7076: --------------------------------------- Github user tillrohrmann commented on a diff in the pull request: https://github.com/apache/flink/pull/4729#discussion_r148808362 --- Diff: flink-yarn/src/main/java/org/apache/flink/yarn/YarnResourceManager.java --- @@ -227,14 +241,27 @@ public void startNewWorker(ResourceProfile resourceProfile) { } @Override - public boolean stopWorker(ResourceID resourceID) { - // TODO: Implement to stop the worker - return false; + public boolean stopWorker(YarnWorkerNode workerNode) { + workerNodeMap.remove(workerNode.getResourceID().toString()); --- End diff -- Let's remove the workerNode after we have stopped it. > Implement container release to support dynamic scaling > ------------------------------------------------------ > > Key: FLINK-7076 > URL: https://issues.apache.org/jira/browse/FLINK-7076 > Project: Flink > Issue Type: Sub-task > Components: ResourceManager > Reporter: Till Rohrmann > Assignee: Shuyi Chen > Priority: Major > Labels: flip-6 > > In order to support dynamic scaling, the {{YarnResourceManager}} has to be > able to dynamically free containers. We have to implement the > {{YarnResourceManager#stopWorker}} method. -- This message was sent by Atlassian JIRA (v6.4.14#64029)