gauravkm commented on code in PR #3261:
URL: https://github.com/apache/celeborn/pull/3261#discussion_r2125556366


##########
common/src/main/java/org/apache/celeborn/common/write/PushState.java:
##########
@@ -102,4 +106,35 @@ public void recordFailedBatch(String partitionId, int 
mapId, int attemptId, int
   public Map<String, LocationPushFailedBatches> getFailedBatches() {
     return this.failedBatchMap;
   }
+
+  public int[] getCRC32PerPartition(boolean shuffleIntegrityCheckEnabled, int 
numPartitions) {
+    int[] crc32PerPartition = new int[numPartitions];
+    if (!shuffleIntegrityCheckEnabled) {
+      return crc32PerPartition;
+    }
+
+    for (Map.Entry<Integer, CommitMetadata> entry : 
commitMetadataMap.entrySet()) {
+      crc32PerPartition[entry.getKey()] = entry.getValue().getChecksum();
+    }
+    return crc32PerPartition;
+  }
+
+  public long[] getBytesWrittenPerPartition(
+      boolean shuffleIntegrityCheckEnabled, int numPartitions) {
+    long[] bytesWrittenPerPartition = new long[numPartitions];

Review Comment:
   Updated to empty array



##########
common/src/main/java/org/apache/celeborn/common/write/PushState.java:
##########
@@ -102,4 +106,35 @@ public void recordFailedBatch(String partitionId, int 
mapId, int attemptId, int
   public Map<String, LocationPushFailedBatches> getFailedBatches() {
     return this.failedBatchMap;
   }
+
+  public int[] getCRC32PerPartition(boolean shuffleIntegrityCheckEnabled, int 
numPartitions) {
+    int[] crc32PerPartition = new int[numPartitions];
+    if (!shuffleIntegrityCheckEnabled) {

Review Comment:
   Updated to empty array



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

Reply via email to