hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject svn commit: r798000 - in /hadoop/hbase/trunk: CHANGES.txt src/java/org/apache/hadoop/hbase/client/HConnectionManager.java
Date Sun, 26 Jul 2009 23:09:46 GMT
Author: apurtell
Date: Sun Jul 26 23:09:45 2009
New Revision: 798000

URL: http://svn.apache.org/viewvc?rev=798000&view=rev
Log:
HBASE-1706 META row with missing HRI breaks UI

Modified:
    hadoop/hbase/trunk/CHANGES.txt
    hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/HConnectionManager.java

Modified: hadoop/hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=798000&r1=797999&r2=798000&view=diff
==============================================================================
--- hadoop/hbase/trunk/CHANGES.txt (original)
+++ hadoop/hbase/trunk/CHANGES.txt Sun Jul 26 23:09:45 2009
@@ -285,6 +285,7 @@
    HBASE-1607  transactions / indexing fixes: trx deletes not handeled, index
                scan can't specify stopRow (Clint Morgan via Stack)
    HBASE-1693  NPE close_region ".META." in shell
+   HBASE-1706  META row with missing HRI breaks UI
 
   IMPROVEMENTS
    HBASE-1089  Add count of regions on filesystem to master UI; add percentage

Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/HConnectionManager.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/HConnectionManager.java?rev=798000&r1=797999&r2=798000&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/HConnectionManager.java (original)
+++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/client/HConnectionManager.java Sun
Jul 26 23:09:45 2009
@@ -353,8 +353,12 @@
       MetaScannerVisitor visitor = new MetaScannerVisitor() {
         public boolean processRow(Result result) throws IOException {
           try {
-            HRegionInfo info = Writables.getHRegionInfo(
-              result.getValue(CATALOG_FAMILY, REGIONINFO_QUALIFIER));
+            byte[] value =
+              result.getValue(CATALOG_FAMILY, REGIONINFO_QUALIFIER);
+            HRegionInfo info = null;
+            if (value != null) {
+              info = Writables.getHRegionInfo(value);
+            }
             // Only examine the rows where the startKey is zero length
             if (info != null && info.getStartKey().length == 0) {
               uniqueTables.add(info.getTableDesc());



Mime
View raw message