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 2022/01/12 01:40:41 UTC

[GitHub] [ozone] jojochuang commented on a change in pull request #2965: HDDS-6157. More consistent synchronization in InputStreams

jojochuang commented on a change in pull request #2965:
URL: https://github.com/apache/ozone/pull/2965#discussion_r782648960



##########
File path: hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/io/KeyInputStream.java
##########
@@ -351,14 +351,14 @@ public boolean seekToNewSource(long targetPos) throws IOException {
   }
 
   @Override
-  public int available() throws IOException {
+  public synchronized int available() throws IOException {

Review comment:
       BTW, available() in S3AInputStream and HDFS's DFSInputStream are both synchronized.




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