HBASE-5486 Warn message in HTable: Stringify the byte[]
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1296478 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9a857c8e87
commit
4343a0a00d
|
@ -299,9 +299,13 @@ public final class HConstants {
|
|||
/** The catalog family */
|
||||
public static final byte [] CATALOG_FAMILY = Bytes.toBytes(CATALOG_FAMILY_STR);
|
||||
|
||||
/** The RegionInfo qualifier as a string */
|
||||
public static final String REGIONINFO_QUALIFIER_STR = "regioninfo";
|
||||
|
||||
/** The regioninfo column qualifier */
|
||||
public static final byte [] REGIONINFO_QUALIFIER = Bytes.toBytes("regioninfo");
|
||||
|
||||
public static final byte [] REGIONINFO_QUALIFIER =
|
||||
Bytes.toBytes(REGIONINFO_QUALIFIER_STR);
|
||||
|
||||
/** The server column qualifier */
|
||||
public static final byte [] SERVER_QUALIFIER = Bytes.toBytes("server");
|
||||
|
||||
|
|
|
@ -421,8 +421,8 @@ public class HTable implements HTableInterface {
|
|||
byte [] bytes = rowResult.getValue(HConstants.CATALOG_FAMILY,
|
||||
HConstants.REGIONINFO_QUALIFIER);
|
||||
if (bytes == null) {
|
||||
LOG.warn("Null " + HConstants.REGIONINFO_QUALIFIER + " cell in " +
|
||||
rowResult);
|
||||
LOG.warn("Null " + HConstants.REGIONINFO_QUALIFIER_STR +
|
||||
" cell in " + rowResult);
|
||||
return true;
|
||||
}
|
||||
HRegionInfo info = Writables.getHRegionInfo(bytes);
|
||||
|
|
Loading…
Reference in New Issue