xkrogen commented on a change in pull request #32877:
URL: https://github.com/apache/spark/pull/32877#discussion_r650068179



##########
File path: core/src/main/scala/org/apache/spark/ContextCleaner.scala
##########
@@ -188,7 +188,7 @@ private[spark] class ContextCleaner(
   private def keepCleaning(): Unit = Utils.tryOrStopSparkContext(sc) {
     while (!stopped) {
       try {
-        val reference = 
Option(referenceQueue.remove(ContextCleaner.REF_QUEUE_POLL_TIMEOUT))
+        val reference = Option(referenceQueue.remove())

Review comment:
       +1 with @srowen -- it seems to me that the current behavior is 
intentional, to allow for periodic checking of `stopped` to allow for the loop 
to exit. 




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

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