ss77892 commented on code in PR #11250:
URL: https://github.com/apache/ozone/pull/11250#discussion_r4038723117
##########
hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/keyvalue/TestKeyValueHandler.java:
##########
@@ -1200,64 +1198,128 @@ private void assertOutOfRange(ReadBlockResult result,
long offset) {
.contains(String.valueOf(BLOCK_SIZE));
}
+ /** A request rejected on the stream ends the call from the datanode side,
so the block file must be closed there. */
+ @Test
+ public void testReadBlockErrorOnTheStreamClosesTheBlockFile() throws
Exception {
Review Comment:
@chihsuan Thank you for looking into it! I've added a successful read to the
test.
--
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]