From c75756fe130a50905a195799ab2f8ba4329961fc Mon Sep 17 00:00:00 2001 From: Ayush Saxena Date: Fri, 14 Feb 2020 22:07:24 +0530 Subject: [PATCH] HDFS-15164. Fix TestDelegationTokensWithHA. Contributed by Ayush Saxena. --- .../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 fb3cc34794..636039d6f7 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.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 void shutdownCluster() throws IOException { 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);