diff --git a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/async/TestDisableNameservicesExample.java b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/async/TestDisableNameservicesExample.java index 9fe7f2d0af381..ff970734ec370 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/async/TestDisableNameservicesExample.java +++ b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/async/TestDisableNameservicesExample.java @@ -76,6 +76,11 @@ public class TestDisableNameservicesExample { public static final String ASYNC_MODE = "ASYNC"; public static final String SYNC_MODE = "SYNC"; + static StateStoreDFSCluster cluster; + static RouterContext routerContext; + static RouterClient routerAdminClient; + static ClientProtocol routerProtocol; + @Nested @ExtendWith(RouterServerHelper.class) class TestWithAsyncRouterRpc { @@ -122,11 +127,6 @@ public void testWithoutDisablingSync() throws IOException { } } - static StateStoreDFSCluster cluster; - static RouterContext routerContext; - static RouterClient routerAdminClient; - static ClientProtocol routerProtocol; - public static void setUp(String rpcMode) throws Exception { // Build and start a federated cluster. cluster = new StateStoreDFSCluster(false, 2);