Browse Source

YARN-5856. Unnecessary duplicate start container request sent to NM State store. Contributed by Varun Saxena.

Naganarasimha 8 years ago
parent
commit
de3a5f8d08

+ 0 - 2
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/ContainerManagerImpl.java

@@ -1034,8 +1034,6 @@ public class ContainerManagerImpl extends CompositeService implements
             containerTokenIdentifier.getVersion(), request);
             containerTokenIdentifier.getVersion(), request);
         dispatcher.getEventHandler().handle(
         dispatcher.getEventHandler().handle(
           new ApplicationContainerInitEvent(container));
           new ApplicationContainerInitEvent(container));
-        this.context.getNMStateStore().storeContainer(containerId,
-            containerTokenIdentifier.getVersion(), request);
 
 
         this.context.getContainerTokenSecretManager().startContainerSuccessful(
         this.context.getContainerTokenSecretManager().startContainerSuccessful(
           containerTokenIdentifier);
           containerTokenIdentifier);