HBASE-6958 TestAssignmentManager sometimes fails

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1406699 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jxiang 2012-11-07 16:20:43 +00:00
parent 3900978ffe
commit 329796cac5
1 changed files with 4 additions and 1 deletions

View File

@ -863,8 +863,11 @@ public class TestAssignmentManager {
gate.get());
// need to change table state from disabling to disabled.
assertTrue("Table should be disabled.",
am.getZKTable().isDisabledTable(REGIONINFO.getTableNameAsString()));
am.getZKTable().isDisabledTable(REGIONINFO.getTableNameAsString()));
} finally {
this.server.getConfiguration().setClass(
HConstants.HBASE_MASTER_LOADBALANCER_CLASS, DefaultLoadBalancer.class,
LoadBalancer.class);
am.getZKTable().setEnabledTable(REGIONINFO.getTableNameAsString());
am.shutdown();
}