You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2021/11/29 19:02:44 UTC

[GitHub] [ozone] umamaheswararao commented on a change in pull request #2872: HDDS-6009. EC: Optimize ECBlockReconstructedStripeInputStream where there are no missing data indexes

umamaheswararao commented on a change in pull request #2872:
URL: https://github.com/apache/ozone/pull/2872#discussion_r758652612



##########
File path: hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/io/ECBlockReconstructedStripeInputStream.java
##########
@@ -246,12 +246,19 @@ public synchronized int readStripe(ByteBuffer[] bufs) throws IOException {
         }
       }
     }
-    padBuffers(toRead);
-    flipInputs();
-    decodeStripe();
-    // Reset the buffer positions after padding to the read limits so the client
-    // reads the correct amount of data.
-    setBufferReadLimits(bufs, toRead);
+    if (missingIndexes.length > 0) {

Review comment:
       What is the possibility or when missingIndexes would be 0?
   




-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org