yandrey321 commented on code in PR #10764:
URL: https://github.com/apache/ozone/pull/10764#discussion_r3762695446
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/read/TestStreamRead.java:
##########
@@ -301,4 +301,44 @@ static String runTestReadKey(String name, SizeInBytes
keySize, SizeInBytes buffe
print(name, keySizeByte, elapsedNanos, bufferSize, computedMD5);
return computedMD5;
}
+
+ @Test
+ void testSmallChunksWithLargeChecksum() throws Exception {
Review Comment:
can we add the similar test with the following scenario:
Enable setStreamReadBlock(true), setStreamBufferFlushDelay(false);
bytesPerChecksum(512), leave checksumVerify default true.
Write a key so a short chunk sits before a longer chunk:
write 512 bytes → flush() → chunk1 [0,512) (on-grid),
write 10 bytes → flush() → chunk2 [512,522) (short → shifts the grid),
write ~2048 bytes → chunk3 [522, 2570), then close.
Open a stream read, seek(1024), then read().
--
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]