saxenapranav commented on code in PR #6699: URL: https://github.com/apache/hadoop/pull/6699#discussion_r1568773530
########## hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsInputStream.java: ########## @@ -192,6 +210,30 @@ public int read(long position, byte[] buffer, int offset, int length) throw new IOException(FSExceptionMessages.STREAM_IS_CLOSED); } } + + /* + * When the inputStream is started, if the application tries to parallelly read + * ont he inputStream, the first read will be synchronized and the subsequent + * reads will be non-synchronized. + */ + if (!successfulUsage) { Review Comment: Have renamed it to `sequentialReadStarted`. Have removed the blocking in position read, since, it doesnt lead to prefetching. -- 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