You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/AbstractYarnScheduler.java
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -273,6 +273,19 @@ public synchronized void recoverContainersOnNode(
273
273
SchedulerApplicationAttemptschedulerAttempt =
274
274
schedulerApp.getCurrentAppAttempt();
275
275
276
+
if (!rmApp.getApplicationSubmissionContext()
277
+
.getKeepContainersAcrossApplicationAttempts()) {
278
+
// Do not recover containers for stopped attempt or previous attempt.
Copy file name to clipboardExpand all lines: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestWorkPreservingRMRestart.java
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -513,6 +513,19 @@ public void testAMfailedBetweenRMRestart() throws Exception {
0 commit comments