LuciferYang commented on code in PR #8923:
URL: https://github.com/apache/hadoop/pull/8923#discussion_r4572867157
##########
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:
Done. The delegating branch now calls `datas.readVectored(ranges, allocate,
release)`. Added `testEmptyChecksumFileReleasesBufferOnEOF`: an empty `.crc`, a
range past EOF, and a check that every allocated buffer reaches the release
callback. It fails without the fix. #8511 makes the same one-line change.
--
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]