HBASE-2630. HFile should use toStringBinary when printing keys
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@949547 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e9da90e109
commit
c8f365c85b
|
@ -649,6 +649,7 @@ Release 0.21.0 - Unreleased
|
|||
HBASE-2613 Remove the code around MSG_CALL_SERVER_STARTUP
|
||||
HBASE-2599 BaseScanner says "Current assignment of X is not valid" over
|
||||
and over for same region
|
||||
HBASE-2630 HFile should use toStringBinary in various places
|
||||
|
||||
NEW FEATURES
|
||||
HBASE-1961 HBase EC2 scripts
|
||||
|
|
|
@ -569,8 +569,8 @@ public class HFile {
|
|||
this.lastKeyLength, key, offset, length);
|
||||
if (keyComp > 0) {
|
||||
throw new IOException("Added a key not lexically larger than" +
|
||||
" previous key=" + Bytes.toString(key, offset, length) +
|
||||
", lastkey=" + Bytes.toString(this.lastKeyBuffer, this.lastKeyOffset,
|
||||
" previous key=" + Bytes.toStringBinary(key, offset, length) +
|
||||
", lastkey=" + Bytes.toStringBinary(this.lastKeyBuffer, this.lastKeyOffset,
|
||||
this.lastKeyLength));
|
||||
} else if (keyComp == 0) {
|
||||
dupKey = true;
|
||||
|
@ -1625,7 +1625,7 @@ public class HFile {
|
|||
sb.append("size=" + count);
|
||||
for (int i = 0; i < count ; i++) {
|
||||
sb.append(", ");
|
||||
sb.append("key=").append(Bytes.toString(blockKeys[i])).
|
||||
sb.append("key=").append(Bytes.toStringBinary(blockKeys[i])).
|
||||
append(", offset=").append(blockOffsets[i]).
|
||||
append(", dataSize=" + blockDataSizes[i]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue