chihsuan commented on code in PR #12123:
URL: https://github.com/apache/ozone/pull/12123#discussion_r4658876064
##########
hadoop-ozone/integration-test-utils/src/main/java/org/apache/hadoop/ozone/OzoneTestUtils.java:
##########
@@ -190,6 +192,20 @@ public static void setFastPipelineScrub(OzoneConfiguration
conf) {
conf.set(ScmConfigKeys.OZONE_SCM_PIPELINE_DESTROY_TIMEOUT, "2s");
}
+ /**
+ * Returns a copy of {@code conf} with a short Ratis client write request
timeout, for clients in tests
+ * where retrying the write cannot succeed. The timeout stays above the
Ratis client RPC request timeout,
+ * so the first attempt can complete.
+ */
+ public static OzoneConfiguration
withShortWriteRequestTimeout(OzoneConfiguration conf) {
+ OzoneConfiguration copy = new OzoneConfiguration(conf);
Review Comment:
Thanks for checking. I'll move it to `RatisTestHelper` instead. It fits
better there with the other Ratis helpers to avoid the `hadoop-common`
dependency.
--
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]