Skip to content

Commit 16c90a8

Browse files
move up lines to avoid duplicate
1 parent fea390d commit 16c90a8

File tree

1 file changed

+2
-3
lines changed
  • yarn/src/main/scala/org/apache/spark/deploy/yarn

1 file changed

+2
-3
lines changed

yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -626,12 +626,11 @@ private[spark] class Client(
626626
if (fireAndForget) {
627627
val report = getApplicationReport(appId)
628628
val state = report.getYarnApplicationState
629+
logInfo(s"Application report for $appId (state: $state)")
630+
logInfo(formatReportDetails(report))
629631
if (state == YarnApplicationState.FAILED || state == YarnApplicationState.KILLED) {
630-
logInfo(formatReportDetails(report))
631632
throw new SparkException(s"Application $appId finished with status: $state")
632633
}
633-
logInfo(s"Application report for $appId (state: $state)")
634-
logInfo(formatReportDetails(report))
635634
} else {
636635
val (yarnApplicationState, finalApplicationStatus) = monitorApplication(appId)
637636
if (yarnApplicationState == YarnApplicationState.FAILED ||

0 commit comments

Comments
 (0)