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:
parent
f63ecc9a06
commit
423fca2f16
@ -240,7 +240,8 @@ abstract class BaseScanner extends Chore implements HConstants {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!info.isOffline()) {
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
@ -268,7 +269,7 @@ abstract class BaseScanner extends Chore implements HConstants {
|
|||||||
parent.getRegionName(), rowContent, COL_SPLITB);
|
parent.getRegionName(), rowContent, COL_SPLITB);
|
||||||
|
|
||||||
if (!hasReferencesA && !hasReferencesB) {
|
if (!hasReferencesA && !hasReferencesB) {
|
||||||
LOG.info("Deleting region " + parent.getRegionName() +
|
LOG.info("Deleting region " + parent.getRegionNameAsString() +
|
||||||
" because daughter splits no longer hold references");
|
" because daughter splits no longer hold references");
|
||||||
HRegion.deleteRegion(master.fs, master.rootdir, parent);
|
HRegion.deleteRegion(master.fs, master.rootdir, parent);
|
||||||
|
|
||||||
@ -334,8 +335,8 @@ abstract class BaseScanner extends Chore implements HConstants {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
LOG.debug(split.getRegionName().toString()
|
LOG.debug(split.getRegionNameAsString() +
|
||||||
+" no longer has references to " + parent.toString());
|
" no longer has references to " + parent.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
BatchUpdate b = new BatchUpdate(parent);
|
BatchUpdate b = new BatchUpdate(parent);
|
||||||
@ -365,7 +366,7 @@ abstract class BaseScanner extends Chore implements HConstants {
|
|||||||
// Skip if region is on kill list
|
// Skip if region is on kill list
|
||||||
if(LOG.isDebugEnabled()) {
|
if(LOG.isDebugEnabled()) {
|
||||||
LOG.debug("not assigning region (on kill list): " +
|
LOG.debug("not assigning region (on kill list): " +
|
||||||
info.getRegionName());
|
info.getRegionNameAsString());
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -385,7 +386,7 @@ abstract class BaseScanner extends Chore implements HConstants {
|
|||||||
// The current assignment is invalid
|
// The current assignment is invalid
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
LOG.debug("Current assignment of " +
|
LOG.debug("Current assignment of " +
|
||||||
Bytes.toString(info.getRegionName()) +
|
info.getRegionNameAsString() +
|
||||||
" is not valid: serverInfo: " + storedInfo + ", passed startCode: " +
|
" is not valid: serverInfo: " + storedInfo + ", passed startCode: " +
|
||||||
startCode + ", storedInfo.startCode: " +
|
startCode + ", storedInfo.startCode: " +
|
||||||
((storedInfo != null)? storedInfo.getStartCode(): -1) +
|
((storedInfo != null)? storedInfo.getStartCode(): -1) +
|
||||||
|
@ -470,7 +470,7 @@ public class HStoreFile implements HConstants {
|
|||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return encodedRegionName + "/" + colFamily + "/" + fileId +
|
return encodedRegionName + "/" + Bytes.toString(colFamily) + "/" + fileId +
|
||||||
(isReference()? "-" + reference.toString(): "");
|
(isReference()? "-" + reference.toString(): "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user