hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1296478 - in /hbase/trunk/src/main/java/org/apache/hadoop/hbase: HConstants.java client/HTable.java
Date Fri, 02 Mar 2012 21:16:03 GMT
Author: stack
Date: Fri Mar  2 21:16:03 2012
New Revision: 1296478

URL: http://svn.apache.org/viewvc?rev=1296478&view=rev
Log:
HBASE-5486 Warn message in HTable: Stringify the byte[]

Modified:
    hbase/trunk/src/main/java/org/apache/hadoop/hbase/HConstants.java
    hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HTable.java

Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/HConstants.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/HConstants.java?rev=1296478&r1=1296477&r2=1296478&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/HConstants.java (original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/HConstants.java Fri Mar  2 21:16:03
2012
@@ -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");
 

Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HTable.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HTable.java?rev=1296478&r1=1296477&r2=1296478&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HTable.java (original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/HTable.java Fri Mar  2 21:16:03
2012
@@ -421,8 +421,8 @@ public class HTable implements HTableInt
         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);



Mime
View raw message