HBASE-13032 Migration of states should be performed once META is assigned and onlined (Andrey Stepachev)

This commit is contained in:
stack 2015-02-20 22:06:57 -08:00
parent 9d29f3c4f1
commit 61901c86b1
1 changed files with 2 additions and 1 deletions

View File

@ -700,7 +700,8 @@ public class HMaster extends HRegionServer implements MasterServices, Server {
// assigned when master is shutting down // assigned when master is shutting down
if(isStopped()) return; if(isStopped()) return;
// migrating existent table state from zk // migrating existent table state from zk, so splitters
// and recovery process treat states properly.
for (Map.Entry<TableName, TableState.State> entry : ZKDataMigrator for (Map.Entry<TableName, TableState.State> entry : ZKDataMigrator
.queryForTableStates(getZooKeeper()).entrySet()) { .queryForTableStates(getZooKeeper()).entrySet()) {
LOG.info("Converting state from zk to new states:" + entry); LOG.info("Converting state from zk to new states:" + entry);