Skip to content

Commit f099c0b

Browse files
committed
Reuse appInfo
1 parent b2b7b25 commit f099c0b

File tree

1 file changed

+1
-1
lines changed
  • core/src/main/scala/org/apache/spark/deploy/master

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/deploy/master/Master.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ private[spark] class Master(
312312
if (appInfo.incrementRetryCount() < ApplicationState.MAX_NUM_RETRY) {
313313
schedule()
314314
} else {
315-
val execs = idToApp(appId).executors.values
315+
val execs = appInfo.executors.values
316316
if (!execs.exists(_.state == ExecutorState.RUNNING)) {
317317
logError(s"Application ${appInfo.desc.name} with ID ${appInfo.id} failed " +
318318
s"${appInfo.retryCount} times; removing it")

0 commit comments

Comments
 (0)