HBASE-13626 ZKTableStateManager logs table state changes at WARN (Stephen Jiang)
This commit is contained in:
parent
2b56169ad6
commit
37ac28ea5b
|
@ -98,7 +98,7 @@ public class ZKTableStateManager implements TableStateManager {
|
||||||
public void setTableState(TableName tableName, ZooKeeperProtos.Table.State state)
|
public void setTableState(TableName tableName, ZooKeeperProtos.Table.State state)
|
||||||
throws CoordinatedStateException {
|
throws CoordinatedStateException {
|
||||||
synchronized (this.cache) {
|
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);
|
+ " to " + state);
|
||||||
try {
|
try {
|
||||||
setTableStateInZK(tableName, state);
|
setTableStateInZK(tableName, state);
|
||||||
|
@ -239,8 +239,7 @@ public class ZKTableStateManager implements TableStateManager {
|
||||||
throws CoordinatedStateException {
|
throws CoordinatedStateException {
|
||||||
synchronized (this.cache) {
|
synchronized (this.cache) {
|
||||||
if (this.cache.remove(tableName) == null) {
|
if (this.cache.remove(tableName) == null) {
|
||||||
LOG.warn("Moving table " + tableName + " state to deleted but was " +
|
LOG.warn("Moving table " + tableName + " state to deleted but was already deleted");
|
||||||
"already deleted");
|
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
ZKUtil.deleteNodeFailSilent(this.watcher,
|
ZKUtil.deleteNodeFailSilent(this.watcher,
|
||||||
|
|
Loading…
Reference in New Issue