smengcl commented on code in PR #10764:
URL: https://github.com/apache/ozone/pull/10764#discussion_r3771888666
##########
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:
One thing worth noting, ozone clamps `ozone.client.bytes.per.checksum`
values below 8 KB to 8192, so the proposed 512-byte setup may not exercise the
shifted checksum boundary. Pls use bytesPerChecksum=8192: write 8192 bytes and
flush, write 10 bytes and flush, then write at least 32768 bytes. After closing
the key, open a streaming read, seek(16384), and read with checksum
verification enabled.
--
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]