toString tablename when logging or throwing exception
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@666962 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dfb5daa91d
commit
545a21579a
|
@ -280,7 +280,7 @@ public class HBaseAdmin {
|
||||||
// continue
|
// continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LOG.info("table " + tableName + " deleted");
|
LOG.info("Deleted " + Bytes.toString(tableName));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -344,7 +344,7 @@ public class HBaseAdmin {
|
||||||
if (values == null || values.size() == 0) {
|
if (values == null || values.size() == 0) {
|
||||||
if (valuesfound == 0) {
|
if (valuesfound == 0) {
|
||||||
throw new NoSuchElementException(
|
throw new NoSuchElementException(
|
||||||
"table " + tableName + " not found");
|
"table " + Bytes.toString(tableName) + " not found");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -386,7 +386,7 @@ public class HBaseAdmin {
|
||||||
}
|
}
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
LOG.debug("Sleep. Waiting for first region to be enabled from " +
|
LOG.debug("Sleep. Waiting for first region to be enabled from " +
|
||||||
tableName);
|
Bytes.toString(tableName));
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
Thread.sleep(pause);
|
Thread.sleep(pause);
|
||||||
|
@ -396,10 +396,10 @@ public class HBaseAdmin {
|
||||||
}
|
}
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
LOG.debug("Wake. Waiting for first region to be enabled from " +
|
LOG.debug("Wake. Waiting for first region to be enabled from " +
|
||||||
tableName);
|
Bytes.toString(tableName));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LOG.info("Enabled table " + tableName);
|
LOG.info("Enabled table " + Bytes.toString(tableName));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -462,7 +462,8 @@ public class HBaseAdmin {
|
||||||
RowResult values = server.next(scannerId);
|
RowResult values = server.next(scannerId);
|
||||||
if (values == null || values.size() == 0) {
|
if (values == null || values.size() == 0) {
|
||||||
if (valuesfound == 0) {
|
if (valuesfound == 0) {
|
||||||
throw new NoSuchElementException("table " + tableName + " not found");
|
throw new NoSuchElementException("table " +
|
||||||
|
Bytes.toString(tableName) + " not found");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -504,7 +505,7 @@ public class HBaseAdmin {
|
||||||
}
|
}
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
LOG.debug("Sleep. Waiting for first region to be disabled from " +
|
LOG.debug("Sleep. Waiting for first region to be disabled from " +
|
||||||
tableName);
|
Bytes.toString(tableName));
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
Thread.sleep(pause);
|
Thread.sleep(pause);
|
||||||
|
@ -516,7 +517,7 @@ public class HBaseAdmin {
|
||||||
tableName);
|
tableName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LOG.info("Disabled table " + tableName);
|
LOG.info("Disabled " + Bytes.toString(tableName));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue