Przeglądaj źródła

HDDS-828. Fix deprecation log generated by getting value of the setting ozone.scm.heartbeat.rpc-timeout. Contributed by Yiqun Lin.

Márton Elek 6 lat temu
rodzic
commit
2718f7534d

+ 2 - 2
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/ScmConfigKeys.java

@@ -226,8 +226,8 @@ public final class ScmConfigKeys {
 
   public static final String OZONE_SCM_HEARTBEAT_RPC_TIMEOUT =
       "ozone.scm.heartbeat.rpc-timeout";
-  public static final long OZONE_SCM_HEARTBEAT_RPC_TIMEOUT_DEFAULT =
-      1000;
+  public static final String OZONE_SCM_HEARTBEAT_RPC_TIMEOUT_DEFAULT =
+      "1s";
 
   /**
    * Defines how frequently we will log the missing of heartbeat to a specific

+ 2 - 2
hadoop-hdds/common/src/main/resources/ozone-default.xml

@@ -837,10 +837,10 @@
   </property>
   <property>
     <name>ozone.scm.heartbeat.rpc-timeout</name>
-    <value>1000</value>
+    <value>1s</value>
     <tag>OZONE, MANAGEMENT</tag>
     <description>
-      Timeout value for the RPC from Datanode to SCM in milliseconds.
+      Timeout value for the RPC from Datanode to SCM.
     </description>
   </property>
   <property>