HBASE-11395 Add logging for HBase table operations
This commit is contained in:
parent
c75afc5b8f
commit
008860cb3b
|
@ -196,6 +196,9 @@ public class CreateTableHandler extends EventHandler {
|
|||
*/
|
||||
protected void completed(final Throwable exception) {
|
||||
releaseTableLock();
|
||||
String msg = exception == null ? null : exception.getMessage();
|
||||
LOG.info("Table, " + this.hTableDescriptor.getTableName() + ", creation " +
|
||||
msg == null ? "successful" : "failed. " + msg);
|
||||
if (exception != null) {
|
||||
removeEnablingTable(this.assignmentManager, this.hTableDescriptor.getTableName());
|
||||
}
|
||||
|
|
|
@ -191,7 +191,7 @@ public class DisableTableHandler extends EventHandler {
|
|||
// Flip the table to disabled if success.
|
||||
if (done) this.assignmentManager.getTableStateManager().setTableState(this.tableName,
|
||||
ZooKeeperProtos.Table.State.DISABLED);
|
||||
LOG.info("Disabled table is done=" + done);
|
||||
LOG.info("Disabled table, " + this.tableName + ", is done=" + done);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue