HBASE-10931 Enhance logs

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1586019 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
nkeywal 2014-04-09 16:33:22 +00:00
parent c908da44d0
commit 8bcb70ddcf
4 changed files with 20 additions and 1 deletions

View File

@ -441,4 +441,10 @@ public class CatalogTracker {
public HConnection getConnection() {
return this.connection;
}
@Override
public String toString() {
return "CatalogTracker{" + "connection=" + connection + ", zookeeper=" + zookeeper +
", metaRegionTracker=" + metaRegionTracker + ", stopped=" + stopped + '}';
}
}

View File

@ -205,4 +205,10 @@ public class RpcRetryingCaller<T> {
}
return t;
}
@Override
public String toString() {
return "RpcRetryingCaller{" + "globalStartTime=" + globalStartTime +
", pause=" + pause + ", retries=" + retries + '}';
}
}

View File

@ -243,4 +243,10 @@ public abstract class ZooKeeperNodeTracker extends ZooKeeperListener {
}
return true;
}
@Override
public String toString() {
return "ZooKeeperNodeTracker{" +
"node='" + node + ", stopped=" + stopped + '}';
}
}

View File

@ -749,7 +749,8 @@ public class HRegionFileSystem {
throw new IOException("Unable to remove existing " + regionInfoFile);
}
} catch (FileNotFoundException e) {
LOG.warn(REGION_INFO_FILE + " file not found for region: " + regionInfo.getEncodedName());
LOG.warn(REGION_INFO_FILE + " file not found for region: " + regionInfo.getEncodedName() +
" on table " + regionInfo.getTable());
}
// Write HRI to a file in case we need to recover hbase:meta