Skip to content

Commit b2b7b25

Browse files
committed
Moved 'Application failed' logging
1 parent bdd0928 commit b2b7b25

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,10 @@ private[spark] class Master(
312312
if (appInfo.incrementRetryCount() < ApplicationState.MAX_NUM_RETRY) {
313313
schedule()
314314
} else {
315-
logError(s"Application ${appInfo.desc.name} with ID ${appInfo.id} failed " +
316-
s"${appInfo.retryCount} times; removing it")
317315
val execs = idToApp(appId).executors.values
318316
if (!execs.exists(_.state == ExecutorState.RUNNING)) {
317+
logError(s"Application ${appInfo.desc.name} with ID ${appInfo.id} failed " +
318+
s"${appInfo.retryCount} times; removing it")
319319
removeApplication(appInfo, ApplicationState.FAILED)
320320
}
321321
}

0 commit comments

Comments
 (0)