viirya commented on code in PR #42724:
URL: https://github.com/apache/spark/pull/42724#discussion_r1322175867
##########
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/shuffle/KubernetesLocalDiskShuffleExecutorComponents.scala:
##########
@@ -114,5 +139,32 @@ object KubernetesLocalDiskShuffleExecutorComponents
extends Logging {
}
}
}
+
+ def verifyChecksum(
+ algorithm: String,
+ blockId: BlockId,
+ checksumFile: File,
+ indexFile: File,
+ dataFile: File): Boolean = {
+ blockId match {
+ case _: ShuffleDataBlockId =>
+ if (dataFile == null || !dataFile.exists()) {
+ false // Fail because the data file file doesn't exist.
Review Comment:
```suggestion
false // Fail because the data file doesn't exist.
```
--
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]