peterxcli commented on code in PR #11314:
URL: https://github.com/apache/ozone/pull/11314#discussion_r4139938322
##########
hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/storage/BlockExtendedInputStream.java:
##########
@@ -136,35 +135,4 @@ protected boolean isConnectivityIssue(IOException ex) {
return Status.fromThrowable(ex).getCode() == Status.UNAVAILABLE.getCode();
}
- /**
- * Default positioned read: seek-read-restore on this part's cursor. Block
streams with a
- * stateless implementation override this.
- */
- @Override
- public int readPositioned(long partOffset, ByteBuffer dst) throws
IOException {
Review Comment:
Do you want to do this in other PR? because if the EC support positional
read, too. we can remove the `statelessSupported` flag and its logic from:
https://github.com/apache/ozone/blob/2468fa8b14d600ac3d8cc3d748d48f37440acf46/hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/storage/MultipartInputStream.java#L74-L88
to sth like:
```java
int i = 0;
long streamLength = 0L;
for (PartInputStream partInputStream : inputStreams) {
this.partOffsets[i++] = streamLength;
streamLength += partInputStream.getLength();
}
this.length = streamLength;
```
--
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]