[ https://issues.apache.org/jira/browse/YARN-4143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14876494#comment-14876494 ]
Anubhav Dhoot commented on YARN-4143: ------------------------------------- Cannot think of an API to add to the scheduler that will be called by RMAppAttempt. We can add an event to SchedulerEventType such as AM_CONTAINER_ALLOCATED that happens in the 2 places you mentioned. Seems overkill to me. Lemme know if you have any alternate ways of doing this. > Optimize the check for AMContainer allocation needed by blacklisting and > ContainerType > -------------------------------------------------------------------------------------- > > Key: YARN-4143 > URL: https://issues.apache.org/jira/browse/YARN-4143 > Project: Hadoop YARN > Issue Type: Bug > Reporter: Anubhav Dhoot > Assignee: Anubhav Dhoot > Attachments: YARN-4143.001.patch > > > In YARN-2005 there are checks made to determine if the allocation is for an > AM container. This happens in every allocate call and should be optimized > away since it changes only once per SchedulerApplicationAttempt -- This message was sent by Atlassian JIRA (v6.3.4#6332)