Skip to content

Commit f78843f

Browse files
committed
YARN-11447 A bug occurs during the active/standby switchover of RM, causing RM to work abnormally
1 parent 759ddeb commit f78843f

File tree

1 file changed

+2
-0
lines changed
  • hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager

1 file changed

+2
-0
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ResourceManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,6 +1225,8 @@ public void run() {
12251225
} catch (Exception e) {
12261226
LOG.error(FATAL, "Failed to transition RM to Standby mode.", e);
12271227
ExitUtil.terminate(1, e);
1228+
} finally {
1229+
hasAlreadyRun.set(false);
12281230
}
12291231
}
12301232
}

0 commit comments

Comments
 (0)