venkata91 commented on code in PR #58437:
URL: https://github.com/apache/spark/pull/58437#discussion_r4546994591
##########
core/src/main/scala/org/apache/spark/shuffle/ShuffleHandle.scala:
##########
@@ -25,4 +27,14 @@ import org.apache.spark.annotation.DeveloperApi
* @param shuffleId ID of the shuffle
*/
@DeveloperApi
-abstract class ShuffleHandle(val shuffleId: Int) extends Serializable {}
+abstract class ShuffleHandle(val shuffleId: Int) extends Serializable {
+ /**
+ * Whether this shuffle's output survives losing the executor or host that
wrote it (e.g. on a
+ * remote shuffle service). If so, executor or worker loss keeps its map
output registered.
+ *
+ * Overrides `ShuffleDriverComponents.supportsReliableStorage()` for this
shuffle. Empty (the
+ * default) falls back to that flag, so with the flag on, worker removal and
a map-output
+ * FetchFailed keep other shuffles' map output. A pipelined shuffle must
leave it empty.
Review Comment:
my follow-up trim in be5ec42 dropped that sentence again, sorry. put it back
in 07b99ea: with the flag on, worker removal keeps the map output (only
push-merge results go) and a map-output FetchFailed clears only the failed
shuffle. also says the value is read once at registration, before any map
output is written.
##########
core/src/main/scala/org/apache/spark/shuffle/ShuffleHandle.scala:
##########
@@ -25,4 +25,19 @@ import org.apache.spark.annotation.DeveloperApi
* @param shuffleId ID of the shuffle
*/
@DeveloperApi
-abstract class ShuffleHandle(val shuffleId: Int) extends Serializable {}
+abstract class ShuffleHandle(val shuffleId: Int) extends Serializable {
+ /**
+ * Whether this shuffle's output is stored reliably, off the executor that
produced it (e.g. a
+ * remote shuffle service or distributed filesystem). When true, losing the
executor or its host
+ * does not lose the output, so its map outputs are not unregistered on
executor/worker loss.
+ *
+ * Applies only to materialized, map-output-tracked (blocking) shuffles. A
pipelined shuffle is
+ * located through the streaming task-location registry, not map-status
cleanup, so it cannot
+ * honor this flag; the scheduler rejects a non-`None` value on a pipelined
dependency.
+ *
+ * Per-shuffle override of the app-global
`ShuffleDriverComponents.supportsReliableStorage()`:
+ * `Some(value)` is authoritative for this shuffle; `None` (the default)
means "no per-shuffle
+ * information", so the global flag is used and managers that don't set it
keep legacy behavior.
Review Comment:
same fix as above, 07b99ea.
--
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]