hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject svn commit: r949547 - in /hbase/trunk: CHANGES.txt src/main/java/org/apache/hadoop/hbase/io/hfile/HFile.java
Date Sun, 30 May 2010 17:54:20 GMT
Author: todd
Date: Sun May 30 17:54:19 2010
New Revision: 949547

URL: http://svn.apache.org/viewvc?rev=949547&view=rev
Log:
HBASE-2630. HFile should use toStringBinary when printing keys

Modified:
    hbase/trunk/CHANGES.txt
    hbase/trunk/src/main/java/org/apache/hadoop/hbase/io/hfile/HFile.java

Modified: hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=949547&r1=949546&r2=949547&view=diff
==============================================================================
--- hbase/trunk/CHANGES.txt (original)
+++ hbase/trunk/CHANGES.txt Sun May 30 17:54:19 2010
@@ -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

Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/io/hfile/HFile.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/io/hfile/HFile.java?rev=949547&r1=949546&r2=949547&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/io/hfile/HFile.java (original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/io/hfile/HFile.java Sun May 30 17:54:19
2010
@@ -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]);
       }



Mime
View raw message