yikf opened a new pull request #32877:
URL: https://github.com/apache/spark/pull/32877


   ### What changes were proposed in this pull request?
   Currently, we continue the loop after wait timeout when `ContextCleaner` 
cleanUp if the queue is empty, It is an ineffective loop because the queue is 
empty.
   
   In the PR, it prevent ineffective loop, if the queue is empty, we wait until 
something does get queued instead of ineffective loop after wait timeout .
   
   ### Why are the changes needed?
   avoid inefeective loop
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   Exist test
   


-- 
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:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to