HBASE-10674 HBCK should be updated to do replica related checks Addendum

This commit is contained in:
Ted Yu 2014-08-05 04:19:22 +00:00
parent 8562752143
commit ab757169a1
1 changed files with 2 additions and 2 deletions

View File

@ -657,8 +657,8 @@ public class TestHBaseFsck {
meta.put(put);
meta.flushCommits();
// assign the new replica
HBaseFsckRepair.fixUnassigned(TEST_UTIL.getHBaseAdmin(), newHri);
HBaseFsckRepair.waitUntilAssigned(TEST_UTIL.getHBaseAdmin(), newHri);
HBaseFsckRepair.fixUnassigned((HBaseAdmin)TEST_UTIL.getHBaseAdmin(), newHri);
HBaseFsckRepair.waitUntilAssigned((HBaseAdmin)TEST_UTIL.getHBaseAdmin(), newHri);
// now reset the meta row to its original value
Delete delete = new Delete(metaKey);
delete.deleteColumns(HConstants.CATALOG_FAMILY, MetaTableAccessor.getServerColumn(2));