zuston commented on code in PR #2600:
URL: https://github.com/apache/uniffle/pull/2600#discussion_r2320738532


##########
client-spark/common/src/main/java/org/apache/spark/shuffle/reader/RssShuffleDataIterator.java:
##########
@@ -117,17 +117,20 @@ public boolean hasNext() {
       // If ShuffleServer delete
 
       ByteBuffer rawData = rawBlock != null ? rawBlock.getByteBuffer() : null;
-      long fetchDuration = System.currentTimeMillis() - startFetch;
-      shuffleReadMetrics.incFetchWaitTime(fetchDuration);
+      long readDuration = System.currentTimeMillis() - startFetch;
       if (rawData != null) {
         uncompress(rawBlock, rawData);
         // create new iterator for shuffle data
         long startSerialization = System.currentTimeMillis();
         recordsIterator = createKVIterator(uncompressedData);
         long serializationDuration = System.currentTimeMillis() - 
startSerialization;
-        readTime += fetchDuration;
+        long fetchDuration = System.currentTimeMillis() - startFetch;
+        shuffleReadMetrics.incFetchWaitTime(fetchDuration);
+        readTime += readDuration;
         serializeTime += serializationDuration;

Review Comment:
   I think we just need to add the ser + decompression into the metric like 
this.
   
   shuffleReadMetrics.incFetchWaitTime(serializationDuration + uncompression);



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