viirya commented on code in PR #39900:
URL: https://github.com/apache/spark/pull/39900#discussion_r1097743804
##########
core/src/main/scala/org/apache/spark/SparkContext.scala:
##########
@@ -2092,6 +2092,7 @@ class SparkContext(config: SparkConf) extends Logging {
* @param exitCode Specified exit code that will passed to scheduler backend
in client mode.
*/
def stop(exitCode: Int): Unit = {
+ logInfo(s"SparkContext is stopping with exitCode $exitCode.")
if (LiveListenerBus.withinListenerThread.value) {
throw new SparkException(s"Cannot stop SparkContext within listener bus
thread.")
}
Review Comment:
Do we need to move it after `if
(LiveListenerBus.withinListenerThread.value)`? i.e.,
```suggestion
if (LiveListenerBus.withinListenerThread.value) {
throw new SparkException(s"Cannot stop SparkContext within listener
bus thread.")
}
logInfo(s"SparkContext is stopping with exitCode $exitCode.")
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]