Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/22180#discussion_r212059380
--- Diff:
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala
---
@@ -368,7 +369,11 @@ private[spark] class ApplicationMaster(args:
ApplicationMasterArguments) extends
}
logInfo(s"Final app status: $finalStatus, exitCode: $exitCode" +
Option(msg).map(msg => s", (reason: $msg)").getOrElse(""))
- finalMsg = msg
+ finalMsg = if (msg == null || msg.length <= finalMsgLimitSize) {
--- End diff --
`StringUtils.abbreviate` seems simpler.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]