Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/22180#discussion_r212059286
--- Diff:
resource-managers/yarn/src/main/scala/org/apache/spark/deploy/yarn/ApplicationMaster.scala
---
@@ -143,6 +143,7 @@ private[spark] class ApplicationMaster(args:
ApplicationMasterArguments) extends
@volatile private var finished = false
@volatile private var finalStatus = getDefaultFinalStatus
@volatile private var finalMsg: String = ""
+ private val finalMsgLimitSize = sparkConf.get(AM_FINAL_MSG_LIMIT).toInt
--- End diff --
Better to just read the value at the point where it's needed, given there's
only one use.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]