Ngone51 commented on a change in pull request #32356:
URL: https://github.com/apache/spark/pull/32356#discussion_r620826226
##########
File path: core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala
##########
@@ -1951,11 +1950,8 @@ private[spark] class DAGScheduler(
"Barrier stage will not retry stage due to testing config. Most
recent failure " +
s"reason: $message"
} else {
- s"""$failedStage (${failedStage.name})
- |has failed the maximum allowable number of
- |times: $maxConsecutiveStageAttempts.
- |Most recent failure reason: $message
- """.stripMargin.replaceAll("\n", " ")
+ s"$failedStage (${failedStage.name}) has failed the maximum
allowable number of " +
+ s"times: $maxConsecutiveStageAttempts. Most recent failure
reason: $message"
Review comment:
Note that we don't append `\n` for this "Most recent failure reason"
because `message` already contains it:
```scala
val message = s"Stage failed because barrier task $task finished
unsuccessfully.\n" +
failure.toErrorString
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]