HBASE-12549 Fix TestAssignmentManagerOnCluster#testAssignRacingWithSSH() flaky test

This commit is contained in:
Enis Soztutar 2014-11-20 16:17:06 -08:00
parent cd08f8b2be
commit a16b4e0fd5
1 changed files with 6 additions and 0 deletions

View File

@ -260,6 +260,12 @@ public class TestAssignmentManagerOnCluster {
}
TEST_UTIL.deleteTable(Bytes.toBytes(table));
// reset the value for other tests
TEST_UTIL.getMiniHBaseCluster().getConf().setInt("hbase.assignment.maximum.attempts", 3);
ServerName masterServerName = TEST_UTIL.getMiniHBaseCluster().getMaster().getServerName();
TEST_UTIL.getMiniHBaseCluster().stopMaster(masterServerName);
TEST_UTIL.getMiniHBaseCluster().startMaster();
}
}