From 5710005a19636c173163038d817874d3fec50197 Mon Sep 17 00:00:00 2001 From: Adam Antal Date: Mon, 7 Sep 2020 11:42:51 +0200 Subject: [PATCH] YARN-10332. RESOURCE_UPDATE event was repeatedly registered in DECOMMISSIONING state. Contributed by yehuanhuan (cherry picked from commit 34fe74da0e9c68173e1de196c496b9cfca029618) --- .../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 82e53497e5..f32a863525 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 @@ -315,9 +315,6 @@ RMNodeEventType.CLEANUP_CONTAINER, new CleanUpContainerTransition()) .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,