slfan1989 commented on code in PR #8923:
URL: https://github.com/apache/hadoop/pull/8923#discussion_r4572683317
##########
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/ChecksumFileSystem.java:
##########
@@ -523,7 +523,7 @@ public void readVectored(final List<? extends FileRange>
ranges,
* the data stream.
*/
private boolean dataStreamToHandleVectorIO() {
- return sums == null;
+ return sums == null || !needChecksum();
Review Comment:
Thanks for fixing the fallback for unreadable checksum headers!
Could we also forward the release callback by calling
`datas.readVectored(ranges, allocate, release)` ?
I reproduced a case with an empty `.crc` file and a range extending past EOF
where a buffer was allocated but the release callback was never called.
--
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]