jerrypeng commented on code in PR #57286:
URL: https://github.com/apache/spark/pull/57286#discussion_r3593186198


##########
core/src/main/scala/org/apache/spark/shuffle/ShuffleManager.scala:
##########
@@ -90,15 +90,35 @@ private[spark] trait ShuffleManager {
    */
   def unregisterShuffle(shuffleId: Int): Boolean
 
+  /** Shut down this ShuffleManager. */
+  def stop(): Unit
+}
+
+/**
+ * A [[ShuffleManager]] that materializes shuffle output as addressable blocks 
served through the
+ * block manager (reads, push-based merge, and decommission migration all go 
through its
+ * [[ShuffleBlockResolver]]). This is the traditional shuffle model: a 
consumer stage reads the
+ * producer's output only after it is fully written.
+ * [[org.apache.spark.shuffle.sort.SortShuffleManager]] is the built-in 
implementation. A manager's
+ * type declares its kind -- match on `BlockingShuffle` to reach the resolver 
rather than assuming
+ * every `ShuffleManager` provides one.
+ */
+private[spark] trait BlockingShuffle extends ShuffleManager {

Review Comment:
   BlockingShuffle -> BlockingShuffleManager



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

Reply via email to