HBASE-11615 TestZKLessAMOnCluster.testForceAssignWhileClosing failed on Jenkins

This commit is contained in:
Jimmy Xiang 2014-07-30 15:41:31 -07:00
parent 50ac59fa85
commit 22445d0ebb
1 changed files with 2 additions and 0 deletions

View File

@ -388,6 +388,8 @@ public class TestAssignmentManagerOnCluster {
AssignmentManager am = master.getAssignmentManager();
assertTrue(am.waitForAssignment(hri));
ServerName sn = am.getRegionStates().getRegionServerOfRegion(hri);
TEST_UTIL.assertRegionOnServer(hri, sn, 6000);
MyRegionObserver.preCloseEnabled.set(true);
am.unassign(hri);
RegionState state = am.getRegionStates().getRegionState(hri);