echonesis commented on code in PR #11940:
URL: https://github.com/apache/ozone/pull/11940#discussion_r4798681490
##########
hadoop-hdds/client/src/main/java/org/apache/hadoop/ozone/client/io/ECBlockReconstructedInputStream.java:
##########
@@ -202,6 +202,7 @@ public synchronized void seek(long pos) throws IOException {
// stripe offset.
readAndSeekStripe(partial);
position = pos;
Review Comment:
Thanks for catching this.
I’ll update the proxy to switch readers only after the replacement is
positioned successfully. If positioning fails, the proxy will close the
replacement and keep the original reader at its current position. I’ll add
regression coverage for both paths and check the bytes returned by the next
read.
--
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]