Github user pwendell commented on a diff in the pull request:
https://github.com/apache/spark/pull/2143#discussion_r16734810
--- Diff: core/src/main/scala/org/apache/spark/ContextCleaner.scala ---
@@ -76,6 +76,20 @@ private[spark] class ContextCleaner(sc: SparkContext)
extends Logging {
private val blockOnCleanupTasks = sc.conf.getBoolean(
"spark.cleaner.referenceTracking.blocking", true)
+ /**
+ * Whether to disable blocking on shuffle tasks. This override is
effective only when
+ * blocking on cleanup tasks is enabled.
+ *
+ * When context cleaner is configured to block on every delete request,
it can throw timeout
+ * exceptions on cleanup of shuffle blocks, as reported in SPARK-3139.
To avoid that, this
+ * parameter disables blocking on shuffle cleanups when when
`blockOnCleanupTasks` is true).
+ * Note that this does not affect the cleanup of RDDs and broadcasts.
+ * This is intended to be a temporary workaround, until the real Akka
issue (referred to in
+ * the comment above `blockOnCleanupTasks`) is resolved.
+ */
+ private val disableBlockOnShuffleCleanupTasks = sc.conf.getBoolean(
+ "spark.cleaner.referenceTracking.disableBlockingForShuffles", true)
--- End diff --
Rather than having one option and then another option that disables the
first option. What about just having this.
```
# Existing option
spark.cleaner.referenceTracking.blocking
# More specific option for shuffles
spark.cleaner.referenceTracking.blocking.shuffles
```
This is the same style as the delay scheduling options.
```
spark.locality.wait
spark.locality.wait.process
spark.locality.wait.node
...
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]