2727import org .apache .hadoop .hbase .master .assignment .ServerStateNode ;
2828import org .apache .hadoop .hbase .master .procedure .ServerCrashProcedure ;
2929import org .apache .hadoop .hbase .procedure2 .Procedure ;
30+ import org .apache .hadoop .hbase .testclassification .LargeTests ;
3031import org .apache .hadoop .hbase .testclassification .MasterTests ;
31- import org .apache .hadoop .hbase .testclassification .MediumTests ;
3232import org .junit .Assert ;
3333import org .junit .ClassRule ;
3434import org .junit .Test ;
3535import org .junit .experimental .categories .Category ;
3636import org .slf4j .Logger ;
3737import org .slf4j .LoggerFactory ;
3838
39- @ Category ({ MasterTests .class , MediumTests .class })
39+ @ Category ({ MasterTests .class , LargeTests .class })
4040public class TestClusterRestartFailover extends AbstractTestRestartCluster {
4141
4242 @ ClassRule
@@ -64,7 +64,7 @@ public void test() throws Exception {
6464 .noneMatch (p -> p instanceof ServerCrashProcedure ));
6565 TableName tableName = TABLES [0 ];
6666 ServerName testServer = UTIL .getHBaseCluster ().getRegionServer (0 ).getServerName ();
67- UTIL .waitFor (10000 , () -> getServerStateNode (testServer ) != null );
67+ UTIL .waitFor (30000 , () -> getServerStateNode (testServer ) != null );
6868 ServerStateNode serverNode = getServerStateNode (testServer );
6969 Assert .assertNotNull (serverNode );
7070 Assert .assertTrue ("serverNode should be ONLINE when cluster runs normally" ,
@@ -83,7 +83,7 @@ public void test() throws Exception {
8383 UTIL .getHBaseCluster ().waitUntilShutDown ();
8484 LOG .info ("Starting cluster the second time" );
8585 UTIL .restartHBaseCluster (3 , ports );
86- UTIL .waitFor (10000 , () -> UTIL .getHBaseCluster ().getMaster ().isInitialized ());
86+ UTIL .waitFor (30000 , () -> UTIL .getHBaseCluster ().getMaster ().isInitialized ());
8787 serverNode = UTIL .getHBaseCluster ().getMaster ().getAssignmentManager ().getRegionStates ()
8888 .getServerNode (testServer );
8989 Assert .assertNotNull ("serverNode should not be null when restart whole cluster" , serverNode );
0 commit comments