From 302af9f46f9ebdf8c2d53dc1c495f6d78e2e45a1 Mon Sep 17 00:00:00 2001 From: ye-huanhuan <13244237736@163.com> Date: Wed, 1 Jul 2020 10:33:49 +0800 Subject: [PATCH] YARN-10332: RESOURCE_UPDATE event was repeatedly registered in DECOMMISSIONING state YARN-10332: RESOURCE_UPDATE event was repeatedly registered in DECOMMISSIONING state --- .../hadoop/yarn/server/resourcemanager/rmnode/RMNodeImpl.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/rmnode/RMNodeImpl.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/rmnode/RMNodeImpl.java index 68f44dc6d54..ffddf8bd93f 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/rmnode/RMNodeImpl.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/rmnode/RMNodeImpl.java @@ -317,9 +317,6 @@ public class RMNodeImpl implements RMNode, EventHandler { .addTransition(NodeState.DECOMMISSIONING, EnumSet.of( NodeState.DECOMMISSIONING, NodeState.DECOMMISSIONED), RMNodeEventType.RECONNECTED, new ReconnectNodeTransition()) - .addTransition(NodeState.DECOMMISSIONING, NodeState.DECOMMISSIONING, - RMNodeEventType.RESOURCE_UPDATE, - new UpdateNodeResourceWhenRunningTransition()) //Transitions from LOST state .addTransition(NodeState.LOST, NodeState.LOST,