taklwu commented on code in PR #11102:
URL: https://github.com/apache/ozone/pull/11102#discussion_r3848462095
##########
hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/OzoneFSInputStream.java:
##########
@@ -180,6 +195,19 @@ public int read(long position, ByteBuffer buf) throws
IOException {
}
}
+ // Fallback: stateful seek-read-restore on the shared cursor. This is only
+ // thread-safe when enabled. The lock is only needed for the
seek-read-restore sequence, so it is
+ // not held for the entire read operation.
Review Comment:
fixed
--
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]