Ngone51 commented on a change in pull request #32081:
URL: https://github.com/apache/spark/pull/32081#discussion_r670597130



##########
File path: core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala
##########
@@ -952,6 +952,12 @@ private[spark] class SparkSubmit extends Logging {
     } catch {
       case t: Throwable =>
         throw findCause(t)
+    } finally {
+      try {
+        SparkContext.getActive.foreach(_.stop())

Review comment:
       @HyukjinKwon This PR was reverted once and resubmitted 
https://github.com/apache/spark/pull/32283 (in which Thirftserver and others 
are excluded).
   
   But I agree with you that we should only do this for K8s. Otherwise, it 
looks like a behavior change to me.




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