You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "dongjoon-hyun (via GitHub)" <gi...@apache.org> on 2026/07/02 04:16:53 UTC

[PR] [SPARK-57873][CORE] Support disabling ContextCleaner periodic GC via non-positive interval [spark]

dongjoon-hyun opened a new pull request, #56953:
URL: https://github.com/apache/spark/pull/56953

   ### What changes were proposed in this pull request?
   
   This PR proposes to skip scheduling the periodic GC task in `ContextCleaner.start()` when `spark.cleaner.periodicGC.interval` is non-positive, and documents that such a value disables the periodic GC.
   
   ### Why are the changes needed?
   
   Previously, `spark.cleaner.periodicGC.interval=0s` failed `SparkContext` creation because the value was passed directly to `scheduleAtFixedRate`, which throws `IllegalArgumentException` when `period <= 0`. This change makes a non-positive value a way to disable the periodic `System.gc()`.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No because this is a new feature. Previously, it fails with `IllegalArgumentException` at the start-up.
   
   ### How was this patch tested?
   
   Pass the CIs with the newly added test case.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Fable 5


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [PR] [SPARK-57873][CORE] Support disabling ContextCleaner periodic GC via non-positive interval [spark]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #56953:
URL: https://github.com/apache/spark/pull/56953#issuecomment-4862669110

   **Merge summary** (posted by `merge_spark_pr.py`):
   - merged into master https://github.com/apache/spark/commit/00571c1e
   - merged into branch-4.x https://github.com/apache/spark/commit/719c2c9a


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [PR] [SPARK-57873][CORE] Support disabling ContextCleaner periodic GC via non-positive interval [spark]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun closed pull request #56953: [SPARK-57873][CORE] Support disabling ContextCleaner periodic GC via non-positive interval
URL: https://github.com/apache/spark/pull/56953


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [PR] [SPARK-57873][CORE] Support disabling ContextCleaner periodic GC via non-positive interval [spark]

Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #56953:
URL: https://github.com/apache/spark/pull/56953#issuecomment-4862662634

   Thank you, @LuciferYang !


-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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