hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r678898 - /hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/StoreFileScanner.java
Date Tue, 22 Jul 2008 20:59:20 GMT
Author: stack
Date: Tue Jul 22 13:59:20 2008
New Revision: 678898

URL: http://svn.apache.org/viewvc?rev=678898&view=rev
Log:
HBASE-750 NPE caused by StoreFileScanner.updateReaders

Modified:
    hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/StoreFileScanner.java

Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/StoreFileScanner.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/StoreFileScanner.java?rev=678898&r1=678897&r2=678898&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/StoreFileScanner.java
(original)
+++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/regionserver/StoreFileScanner.java
Tue Jul 22 13:59:20 2008
@@ -377,7 +377,8 @@
       ViableRow viableRow = getNextViableRow();
       openReaders(viableRow.getRow());
       LOG.debug("Replaced Scanner Readers at row " +
-        Bytes.toString(viableRow.getRow()));
+        (viableRow == null || viableRow.getRow() == null? "null":
+          Bytes.toString(viableRow.getRow())));
     } finally {
       this.lock.writeLock().unlock();
     }



Mime
View raw message