dongjoon-hyun commented on code in PR #39900:
URL: https://github.com/apache/spark/pull/39900#discussion_r1097762150


##########
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:
   Thank you for reviewing. I also consider that and this ways, but I want to 
be clear that this log is a marker of this method itself. So, it should be at 
the first line of the method before Spark doing anything.



-- 
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]

Reply via email to