kaijchen commented on code in PR #3941:
URL: https://github.com/apache/ozone/pull/3941#discussion_r1016081083


##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/container/TestECContainerRecovery.java:
##########
@@ -94,6 +94,7 @@ public static void init() throws Exception {
     conf.setFromObject(clientConfig);
 
     conf.setTimeDuration(HDDS_SCM_WATCHER_TIMEOUT, 1000, 
TimeUnit.MILLISECONDS);
+    conf.set("hdds.scm.replication.thread.interval", "10s");

Review Comment:
   To avoid raw use of config string:
   
   ```java
       ReplicationManager.ReplicationManagerConfiguration rmConfig =
           
conf.getObject(ReplicationManager.ReplicationManagerConfiguration.class);
       rmConfig.setInterval(Duration.of(10, ChronoUnit.SECONDS));
       // there are other intervals such as setOverReplicatedInterval()
       // and setUnderReplicatedInterval(), but maybe not needed in this test.
       conf.setFromObject(rmConfig);
   ```



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