viirya commented on code in PR #42724:
URL: https://github.com/apache/spark/pull/42724#discussion_r1322478177
##########
core/src/main/scala/org/apache/spark/shuffle/ShuffleChecksumUtils.scala:
##########
@@ -22,9 +22,22 @@ import java.util.zip.CheckedInputStream
import org.apache.spark.network.shuffle.checksum.ShuffleChecksumHelper
import org.apache.spark.network.util.LimitedInputStream
+import org.apache.spark.shuffle.IndexShuffleBlockResolver.NOOP_REDUCE_ID
+import org.apache.spark.storage.{BlockId, ShuffleChecksumBlockId,
ShuffleDataBlockId}
object ShuffleChecksumUtils {
+ /**
+ * Return checksumFile for shuffle data block ID. Otherwise, null.
+ */
+ def getChecksumFileName(blockId: BlockId, algorithm: String): String =
blockId match {
+ case ShuffleDataBlockId(shuffleId, mapId, _) =>
+ ShuffleChecksumHelper.getChecksumFileName(
+ ShuffleChecksumBlockId(shuffleId, mapId, NOOP_REDUCE_ID).name,
algorithm)
Review Comment:
Isn't `NOOP_REDUCE_ID` for sort-based shuffle only?
--
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]