From afeab770fedd6e8bc855cb075bca713cc2ca497e Mon Sep 17 00:00:00 2001 From: zhanghaobo Date: Fri, 7 Mar 2025 14:15:14 +0800 Subject: [PATCH] move position of fields --- .../async/TestDisableNameservicesExample.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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..9bbff5692de03 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 { @@ -87,13 +92,13 @@ public void testMetricsAsync(String rpcMode) throws Exception { } /* @ParameterizedTest - @ValueSource(strings = {"ASYNC"}) + @ValueSource(strings = {ASYNC_MODE) public void testDisablingAsync() throws Exception { testDisabling(); } @ParameterizedTest - @ValueSource(strings = {"ASYNC"}) + @ValueSource(strings = {ASYNC_MODE) public void testWithoutDisablingAsync() throws IOException { testWithoutDisabling(); }*/ @@ -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);