HBASE-9063 TestAssignmentManagerOnCluster.testSSHWhenDisablingTableRegionsInOpeningOrPendingOpenState fails
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1508145 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
342b69f497
commit
f7de23fb90
|
@ -258,7 +258,7 @@ public class TestAssignmentManagerOnCluster {
|
||||||
|
|
||||||
// wait till the table is assigned
|
// wait till the table is assigned
|
||||||
HMaster master = TEST_UTIL.getHBaseCluster().getMaster();
|
HMaster master = TEST_UTIL.getHBaseCluster().getMaster();
|
||||||
long timeoutTime = System.currentTimeMillis() + 100;
|
long timeoutTime = System.currentTimeMillis() + 1000;
|
||||||
while (true) {
|
while (true) {
|
||||||
List<HRegionInfo> regions = master.getAssignmentManager().
|
List<HRegionInfo> regions = master.getAssignmentManager().
|
||||||
getRegionStates().getRegionsOfTable(Bytes.toBytes(tableName));
|
getRegionStates().getRegionsOfTable(Bytes.toBytes(tableName));
|
||||||
|
@ -479,7 +479,9 @@ public class TestAssignmentManagerOnCluster {
|
||||||
assertTrue("Regions to be assigned should be empty.", am.getRegionStates()
|
assertTrue("Regions to be assigned should be empty.", am.getRegionStates()
|
||||||
.getRegionState(hri).isOffline());
|
.getRegionState(hri).isOffline());
|
||||||
} finally {
|
} finally {
|
||||||
|
if (hri != null && serverName != null) {
|
||||||
am.regionOnline(hri, serverName);
|
am.regionOnline(hri, serverName);
|
||||||
|
}
|
||||||
am.getZKTable().setDisabledTable(table);
|
am.getZKTable().setDisabledTable(table);
|
||||||
TEST_UTIL.deleteTable(Bytes.toBytes(table));
|
TEST_UTIL.deleteTable(Bytes.toBytes(table));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue