This is an automated email from the ASF dual-hosted git repository.

ivandika pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new d11752fb17 HDDS-10972. Reduce the default watch timeout configuration 
in DatanodeRatisServerConfig (#6772)
d11752fb17 is described below

commit d11752fb171df2bd0e1042ef95e5577e122c3a74
Author: Ivan Andika <[email protected]>
AuthorDate: Thu Jun 6 09:27:29 2024 +0800

    HDDS-10972. Reduce the default watch timeout configuration in 
DatanodeRatisServerConfig (#6772)
---
 .../java/org/apache/hadoop/hdds/ratis/conf/RatisClientConfig.java | 4 +++-
 .../org/apache/hadoop/hdds/conf/DatanodeRatisServerConfig.java    | 8 +++++---
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git 
a/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/ratis/conf/RatisClientConfig.java
 
b/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/ratis/conf/RatisClientConfig.java
index c21e25d0b6..3cd6581ce7 100644
--- 
a/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/ratis/conf/RatisClientConfig.java
+++ 
b/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/ratis/conf/RatisClientConfig.java
@@ -86,7 +86,9 @@ public class RatisClientConfig {
         description =
         "The timeout duration for ratis client watch request. "
             + "Timeout for the watch API in Ratis client to acknowledge a "
-            + "particular request getting replayed to all servers.")
+            + "particular request getting replayed to all servers. "
+            + "It is highly recommended for the timeout duration to be 
strictly longer than "
+            + "Ratis server watch timeout 
(hdds.ratis.raft.server.watch.timeout)")
     private Duration rpcWatchRequestTimeout = Duration.ofSeconds(180);
 
     public Duration getRpcWatchRequestTimeout() {
diff --git 
a/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/conf/DatanodeRatisServerConfig.java
 
b/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/conf/DatanodeRatisServerConfig.java
index 643c94ebc2..fc5e12154a 100644
--- 
a/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/conf/DatanodeRatisServerConfig.java
+++ 
b/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/conf/DatanodeRatisServerConfig.java
@@ -54,14 +54,16 @@ public class DatanodeRatisServerConfig {
   }
 
   @Config(key = "watch.timeout",
-      defaultValue = "180s",
+      defaultValue = "30s",
       type = ConfigType.TIME,
       tags = {OZONE, DATANODE, RATIS},
       description = "The timeout duration for watch request on Ratis Server. " 
+
           "Timeout for the watch request in Ratis server to acknowledge a " +
-          "particular request is replayed to all servers."
+          "particular request is replayed to all servers. It is highly 
recommended " +
+          "for the timeout duration to be strictly shorter than Ratis client 
watch timeout " +
+          "(hdds.ratis.raft.client.rpc.watch.request.timeout)."
   )
-  private long watchTimeOut = Duration.ofSeconds(180).toMillis();
+  private long watchTimeOut = Duration.ofSeconds(30).toMillis();
 
   public long getWatchTimeOut() {
     return watchTimeOut;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to