adoroszlai commented on code in PR #12123:
URL: https://github.com/apache/ozone/pull/12123#discussion_r4657991927


##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestBlockOutputStreamWithFailures.java:
##########
@@ -757,6 +760,16 @@ void testDatanodeFailureWithPreAllocation(boolean 
flushDelay, boolean enablePigg
     }
   }
 
+  // Client that gives up retrying a write soon after losing the majority of 
the pipeline.
+  // Must stay above the Ratis client RPC request timeout set in 
createCluster, so the first attempt can complete.

Review Comment:
   Should we enforce this by adding a constant for the timeout and adding +1 
here?



##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestBlockOutputStreamWithFailures.java:
##########
@@ -757,6 +760,16 @@ void testDatanodeFailureWithPreAllocation(boolean 
flushDelay, boolean enablePigg
     }
   }
 
+  // Client that gives up retrying a write soon after losing the majority of 
the pipeline.
+  // Must stay above the Ratis client RPC request timeout set in 
createCluster, so the first attempt can complete.
+  private OzoneConfiguration fastFailConf() {
+    OzoneConfiguration copy = new OzoneConfiguration(cluster.getConf());

Review Comment:
   Adding parameter `OzoneConfiguration conf` and making it non-`private`, 
`static`, we could reuse this for `TestMultiBlockWritesWithDnFailures`?



-- 
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]

Reply via email to