You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ay...@apache.org on 2020/02/14 16:56:22 UTC

[hadoop] branch branch-3.1 updated: HDFS-15164. Fix TestDelegationTokensWithHA. Contributed by Ayush Saxena.

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

ayushsaxena pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.1 by this push:
     new cf5a718  HDFS-15164. Fix TestDelegationTokensWithHA. Contributed by Ayush Saxena.
cf5a718 is described below

commit cf5a7186e53a7253101966be1babe4b77a15521d
Author: Ayush Saxena <ay...@apache.org>
AuthorDate: Fri Feb 14 22:07:24 2020 +0530

    HDFS-15164. Fix TestDelegationTokensWithHA. Contributed by Ayush Saxena.
---
 .../hadoop/hdfs/server/namenode/ha/TestDelegationTokensWithHA.java      | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestDelegationTokensWithHA.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestDelegationTokensWithHA.java
index 2186052..cdeaf10 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestDelegationTokensWithHA.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestDelegationTokensWithHA.java
@@ -59,6 +59,7 @@ import java.security.PrivilegedExceptionAction;
 import java.util.Collection;
 import java.util.HashSet;
 
+import static org.apache.hadoop.hdfs.server.namenode.ha.ObserverReadProxyProvider.OBSERVER_PROBE_RETRY_PERIOD_KEY;
 import static org.junit.Assert.*;
 
 /**
@@ -122,6 +123,7 @@ public class TestDelegationTokensWithHA {
   public void testObserverReadProxyProviderWithDT() throws Exception {
     // Make the first node standby, so that the ORPP will try it first
     // instead of just using and succeeding on the active
+    conf.setInt(OBSERVER_PROBE_RETRY_PERIOD_KEY, 0);
     cluster.transitionToStandby(0);
     cluster.transitionToActive(1);
 


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