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


##########
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:
   Looks like `new OzoneConfiguration(conf)` is considered to be using 
`hadoop-common`.
   
   ```
   [INFO] --- dependency:3.11.0:analyze-only (analyze) @ 
ozone-integration-test-utils ---
   [ERROR] Used undeclared dependencies found:
   [ERROR]    org.apache.hadoop:hadoop-common:jar:3.4.3:compile
   ```



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