hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r617725 - in /hadoop/core/trunk/src/contrib/hbase: CHANGES.txt src/java/org/apache/hadoop/hbase/HConnectionManager.java src/java/org/apache/hadoop/hbase/HConstants.java
Date Sat, 02 Feb 2008 00:53:59 GMT
Author: stack
Date: Fri Feb  1 16:53:48 2008
New Revision: 617725

URL: http://svn.apache.org/viewvc?rev=617725&view=rev
Log:
HADOOP-2599 Some minor improvements to changes in HADOOP-2443

Modified:
    hadoop/core/trunk/src/contrib/hbase/CHANGES.txt
    hadoop/core/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HConnectionManager.java
    hadoop/core/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HConstants.java

Modified: hadoop/core/trunk/src/contrib/hbase/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/hbase/CHANGES.txt?rev=617725&r1=617724&r2=617725&view=diff
==============================================================================
--- hadoop/core/trunk/src/contrib/hbase/CHANGES.txt (original)
+++ hadoop/core/trunk/src/contrib/hbase/CHANGES.txt Fri Feb  1 16:53:48 2008
@@ -16,6 +16,8 @@
    HADOOP-2731 Under load, regions become extremely large and eventually cause
                region servers to become unresponsive
    HADOOP-2693 NPE in getClosestRowBefore (Bryan Duxbury & Stack)
+   HADOOP-2599 Some minor improvements to changes in HADOOP-2443
+               (Bryan Duxbury & Stack)
 
   IMPROVEMENTS
    HADOOP-2555 Refactor the HTable#get and HTable#getRow methods to avoid

Modified: hadoop/core/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HConnectionManager.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HConnectionManager.java?rev=617725&r1=617724&r2=617725&view=diff
==============================================================================
--- hadoop/core/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HConnectionManager.java
(original)
+++ hadoop/core/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HConnectionManager.java
Fri Feb  1 16:53:48 2008
@@ -257,7 +257,7 @@
           // open a scanner over the meta region
           scannerId = server.openScanner(
             metaLocation.getRegionInfo().getRegionName(),
-            COLUMN_FAMILY_ARRAY, EMPTY_START_ROW, LATEST_TIMESTAMP,
+            COLUMN_FAMILY_ARRAY, startRow, LATEST_TIMESTAMP,
             null);
           
           // iterate through the scanner, accumulating unique table names
@@ -296,7 +296,7 @@
             server.close(scannerId);
           }
         }
-      } while (startRow.compareTo(EMPTY_START_ROW) != 0);
+      } while (startRow.compareTo(LAST_ROW) != 0);
       
       return uniqueTables.toArray(new HTableDescriptor[uniqueTables.size()]);
     }

Modified: hadoop/core/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HConstants.java
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HConstants.java?rev=617725&r1=617724&r2=617725&view=diff
==============================================================================
--- hadoop/core/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HConstants.java (original)
+++ hadoop/core/trunk/src/contrib/hbase/src/java/org/apache/hadoop/hbase/HConstants.java Fri
Feb  1 16:53:48 2008
@@ -167,6 +167,12 @@
    */
   static final Text EMPTY_START_ROW = EMPTY_TEXT;
 
+  /** 
+    * Used by scanners and others when they're trying to detect the end of a 
+    * table 
+    */
+  static final Text LAST_ROW = EMPTY_TEXT;
+  
   /** When we encode strings, we always specify UTF8 encoding */
   static final String UTF8_ENCODING = "UTF-8";
 



Mime
View raw message