steveloughran commented on code in PR #6604: URL: https://github.com/apache/hadoop/pull/6604#discussion_r1537744581
########## hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3AInputStream.java: ########## @@ -885,19 +904,26 @@ public int maxReadSizeForVectorReads() { * @throws IOException IOE if any. */ @Override - public void readVectored(List<? extends FileRange> ranges, + public synchronized void readVectored(List<? extends FileRange> ranges, Review Comment: the invocation is sync, so as to lock out other IO, file being closed etc. but once the reads are queued for execution the API can be invoked again. -- 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: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org