throws IOException {
checkInitialized();
if (cpHost != null) {
cpHost.preModifyTable(tableName, htd);
}
TableEventHandler tblHandler = new ModifyTableHandler(tableName, htd, this, this);
this.executorService.submit(tblHandler);
// prevent client from querying status even before the event is being handled.
tblHandler.waitForEventBeingHandled();
if (cpHost != null) {
cpHost.postModifyTable(tableName, htd);
}
}