Fix a few log messages where we outputting byte arrays instead of String

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@659335 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2008-05-23 00:30:25 +00:00
parent f63ecc9a06
commit 423fca2f16
2 changed files with 8 additions and 7 deletions

View File

@ -240,7 +240,8 @@ abstract class BaseScanner extends Chore implements HConstants {
return false;
}
if (!info.isOffline()) {
LOG.warn("Region is split but not offline: " + info.getRegionName());
LOG.warn("Region is split but not offline: " +
info.getRegionNameAsString());
}
return true;
}
@ -268,7 +269,7 @@ abstract class BaseScanner extends Chore implements HConstants {
parent.getRegionName(), rowContent, COL_SPLITB);
if (!hasReferencesA && !hasReferencesB) {
LOG.info("Deleting region " + parent.getRegionName() +
LOG.info("Deleting region " + parent.getRegionNameAsString() +
" because daughter splits no longer hold references");
HRegion.deleteRegion(master.fs, master.rootdir, parent);
@ -334,8 +335,8 @@ abstract class BaseScanner extends Chore implements HConstants {
}
if (LOG.isDebugEnabled()) {
LOG.debug(split.getRegionName().toString()
+" no longer has references to " + parent.toString());
LOG.debug(split.getRegionNameAsString() +
" no longer has references to " + parent.toString());
}
BatchUpdate b = new BatchUpdate(parent);
@ -365,7 +366,7 @@ abstract class BaseScanner extends Chore implements HConstants {
// Skip if region is on kill list
if(LOG.isDebugEnabled()) {
LOG.debug("not assigning region (on kill list): " +
info.getRegionName());
info.getRegionNameAsString());
}
return;
}
@ -385,7 +386,7 @@ abstract class BaseScanner extends Chore implements HConstants {
// The current assignment is invalid
if (LOG.isDebugEnabled()) {
LOG.debug("Current assignment of " +
Bytes.toString(info.getRegionName()) +
info.getRegionNameAsString() +
" is not valid: serverInfo: " + storedInfo + ", passed startCode: " +
startCode + ", storedInfo.startCode: " +
((storedInfo != null)? storedInfo.getStartCode(): -1) +

View File

@ -470,7 +470,7 @@ public class HStoreFile implements HConstants {
/** {@inheritDoc} */
@Override
public String toString() {
return encodedRegionName + "/" + colFamily + "/" + fileId +
return encodedRegionName + "/" + Bytes.toString(colFamily) + "/" + fileId +
(isReference()? "-" + reference.toString(): "");
}