[ 
https://issues.apache.org/jira/browse/YARN-1070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhijie Shen updated YARN-1070:
------------------------------

    Attachment: YARN-1070.1.patch

Created the patch to fix the problem, which is that cancel() returning true 
whether call() is started or not. In fact the event needs to be emitted from 
ContainersLaunch only when call() is not started.

In addition, fix the bug bellow together in this patch.

{code}
      localResources = container.getLocalizedResources();
      if (localResources == null) {
        !!!need throw here!!! RPCUtil.getRemoteException(
            "Unable to get local resources when Container " + containerID +
            " is at " + container.getContainerState());
      }

Moreover, add the test case, which simulates that call() is started but 
!isDone().
{code}
                
> ContainerImpl State Machine: Invalid event: CONTAINER_KILLED_ON_REQUEST at 
> CONTAINER_CLEANEDUP_AFTER_KILL
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: YARN-1070
>                 URL: https://issues.apache.org/jira/browse/YARN-1070
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: nodemanager
>            Reporter: Hitesh Shah
>            Assignee: Zhijie Shen
>         Attachments: YARN-1070.1.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to