private void checkMigrationDone() throws IOException {
    if (!migrationDone) {
      throw new HBaseIOException("namespace migration is ongoing, modification is disallowed");
    }
  }
check whether a namespace has already existed.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/TableNamespaceManager.java