You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by el...@apache.org on 2020/03/27 09:19:37 UTC

[hadoop-ozone] branch master-stable created (now 58cdc36)

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

elek pushed a change to branch master-stable
in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git.


      at 58cdc36  Revert "HDDS-3234. Fix retry interval default in Ozone client. (#698)"

This branch includes the following new commits:

     new 1d4227b  Revert "HDDS-3064. Get Key is hung when READ delay is injected in chunk file path. (#673)"
     new 58cdc36  Revert "HDDS-3234. Fix retry interval default in Ozone client. (#698)"

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-commits-help@hadoop.apache.org


[hadoop-ozone] 02/02: Revert "HDDS-3234. Fix retry interval default in Ozone client. (#698)"

Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

elek pushed a commit to branch master-stable
in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git

commit 58cdc36c2217ccca9f2f5679bbe78fb79b0b3914
Author: Elek Márton <el...@apache.org>
AuthorDate: Fri Mar 27 10:16:29 2020 +0100

    Revert "HDDS-3234. Fix retry interval default in Ozone client. (#698)"
    
    This reverts commit c64d86f57e38ab19be58b3bc51f8bd1724b65746.
---
 .../common/src/main/java/org/apache/hadoop/hdds/scm/ScmConfigKeys.java  | 2 +-
 hadoop-hdds/common/src/main/resources/ozone-default.xml                 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/ScmConfigKeys.java b/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/ScmConfigKeys.java
index fefcfca..c881698 100644
--- a/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/ScmConfigKeys.java
+++ b/hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/ScmConfigKeys.java
@@ -117,7 +117,7 @@ public final class ScmConfigKeys {
       "dfs.ratis.client.request.retry.interval";
   public static final TimeDuration
       DFS_RATIS_CLIENT_REQUEST_RETRY_INTERVAL_DEFAULT =
-      TimeDuration.valueOf(15000, TimeUnit.MILLISECONDS);
+      TimeDuration.valueOf(1000, TimeUnit.MILLISECONDS);
   public static final String DFS_RATIS_SERVER_RETRY_CACHE_TIMEOUT_DURATION_KEY =
       "dfs.ratis.server.retry-cache.timeout.duration";
   public static final TimeDuration
diff --git a/hadoop-hdds/common/src/main/resources/ozone-default.xml b/hadoop-hdds/common/src/main/resources/ozone-default.xml
index 6ab4df5..990ca2a 100644
--- a/hadoop-hdds/common/src/main/resources/ozone-default.xml
+++ b/hadoop-hdds/common/src/main/resources/ozone-default.xml
@@ -252,7 +252,7 @@
   </property>
   <property>
     <name>dfs.ratis.client.request.retry.interval</name>
-    <value>15000ms</value>
+    <value>1000ms</value>
     <tag>OZONE, RATIS, MANAGEMENT</tag>
     <description>Interval between successive retries for a ratis client request.
     </description>


---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-commits-help@hadoop.apache.org


[hadoop-ozone] 01/02: Revert "HDDS-3064. Get Key is hung when READ delay is injected in chunk file path. (#673)"

Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

elek pushed a commit to branch master-stable
in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git

commit 1d4227b5d0bb3fbe6aa6197efad8a72701a8302b
Author: Elek Márton <el...@apache.org>
AuthorDate: Fri Mar 27 10:15:44 2020 +0100

    Revert "HDDS-3064. Get Key is hung when READ delay is injected in chunk file path. (#673)"
    
    This reverts commit c8b6fff5cc5d87491802f42e26878a5d510b302c.
---
 .../main/java/org/apache/hadoop/hdds/scm/XceiverClientGrpc.java  | 9 +--------
 .../src/main/java/org/apache/hadoop/ozone/OzoneConfigKeys.java   | 3 ---
 hadoop-hdds/common/src/main/resources/ozone-default.xml          | 9 ---------
 3 files changed, 1 insertion(+), 20 deletions(-)

diff --git a/hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientGrpc.java b/hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientGrpc.java
index 715d1a3..668fdaa 100644
--- a/hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientGrpc.java
+++ b/hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientGrpc.java
@@ -189,14 +189,7 @@ public class XceiverClientGrpc extends XceiverClientSpi {
     ManagedChannel channel = channelBuilder.build();
     XceiverClientProtocolServiceStub asyncStub =
         XceiverClientProtocolServiceGrpc.newStub(channel);
-    long duration = config.getTimeDuration(OzoneConfigKeys.
-            OZONE_CLIENT_READ_TIMEOUT, OzoneConfigKeys
-            .OZONE_CLIENT_READ_TIMEOUT_DEFAULT, TimeUnit.SECONDS);
-
-    // set the grpc dealine here so as if the response is not received
-    // in the configured time, the rpc will fail with DEADLINE_EXCEEDED here
-    asyncStubs.put(dn.getUuid(), asyncStub.withDeadlineAfter(duration,
-            TimeUnit.SECONDS));
+    asyncStubs.put(dn.getUuid(), asyncStub);
     channels.put(dn.getUuid(), channel);
   }
 
diff --git a/hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/OzoneConfigKeys.java b/hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/OzoneConfigKeys.java
index c71e0d6..a83aa61 100644
--- a/hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/OzoneConfigKeys.java
+++ b/hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/OzoneConfigKeys.java
@@ -365,9 +365,6 @@ public final class OzoneConfigKeys {
   public static final String OZONE_CLIENT_VERIFY_CHECKSUM =
       "ozone.client.verify.checksum";
   public static final boolean OZONE_CLIENT_VERIFY_CHECKSUM_DEFAULT = true;
-  public static final String OZONE_CLIENT_READ_TIMEOUT
-          = "ozone.client.read.timeout";
-  public static final String OZONE_CLIENT_READ_TIMEOUT_DEFAULT = "30s";
   public static final String OZONE_ACL_AUTHORIZER_CLASS =
       "ozone.acl.authorizer.class";
   public static final String OZONE_ACL_AUTHORIZER_CLASS_DEFAULT =
diff --git a/hadoop-hdds/common/src/main/resources/ozone-default.xml b/hadoop-hdds/common/src/main/resources/ozone-default.xml
index ca107c0..6ab4df5 100644
--- a/hadoop-hdds/common/src/main/resources/ozone-default.xml
+++ b/hadoop-hdds/common/src/main/resources/ozone-default.xml
@@ -1533,15 +1533,6 @@
   </property>
 
   <property>
-    <name>ozone.client.read.timeout</name>
-    <value>30s</value>
-    <tag>OZONE, CLIENT, MANAGEMENT</tag>
-    <description>
-      Timeout for ozone grpc client during read.
-    </description>
-  </property>
-
-  <property>
     <name>ozone.om.lock.fair</name>
     <value>false</value>
     <description>If this is true, the Ozone Manager lock will be used in Fair


---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-commits-help@hadoop.apache.org