xintongsong commented on a change in pull request #10161:
[FLINK-13986][runtime] Clean up legacy code for FLIP-49.
URL: https://github.com/apache/flink/pull/10161#discussion_r348473738
##########
File path:
flink-yarn/src/main/java/org/apache/flink/yarn/YarnResourceManager.java
##########
@@ -539,20 +544,21 @@ private void requestYarnContainer() {
RM_REQUEST_PRIORITY);
}
- private ContainerLaunchContext createTaskExecutorLaunchContext(Resource
resource, String containerId, String host)
- throws Exception {
+ private ContainerLaunchContext createTaskExecutorLaunchContext(
+ TaskExecutorResourceSpec tmResourceSpec,
Review comment:
True, I'll remove the unused `resource`.
For the memory size checking, it is guaranteed by Yarn that the allocated
container should have at least requested memory size, or otherwise the request
will not be satisfied. But I think it doesn't harm to add an assertion for
double checking.
Agree that in future we can have some smarter way to match pending task
executor resource, so we can leverage the extra memory allocated in the
container.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services