HBASE-13626 ZKTableStateManager logs table state changes at WARN (Stephen Jiang)

This commit is contained in:
tedyu 2015-05-06 14:39:29 -07:00
parent 2b56169ad6
commit 37ac28ea5b
1 changed files with 2 additions and 3 deletions

View File

@ -98,7 +98,7 @@ public class ZKTableStateManager implements TableStateManager {
public void setTableState(TableName tableName, ZooKeeperProtos.Table.State state)
throws CoordinatedStateException {
synchronized (this.cache) {
LOG.warn("Moving table " + tableName + " state from " + this.cache.get(tableName)
LOG.info("Moving table " + tableName + " state from " + this.cache.get(tableName)
+ " to " + state);
try {
setTableStateInZK(tableName, state);
@ -239,8 +239,7 @@ public class ZKTableStateManager implements TableStateManager {
throws CoordinatedStateException {
synchronized (this.cache) {
if (this.cache.remove(tableName) == null) {
LOG.warn("Moving table " + tableName + " state to deleted but was " +
"already deleted");
LOG.warn("Moving table " + tableName + " state to deleted but was already deleted");
}
try {
ZKUtil.deleteNodeFailSilent(this.watcher,