hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeffr...@apache.org
Subject svn commit: r1529252 - /hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java
Date Fri, 04 Oct 2013 18:42:57 GMT
Author: jeffreyz
Date: Fri Oct  4 18:42:57 2013
New Revision: 1529252

URL: http://svn.apache.org/r1529252
Log:
HBASE-9709: LogReplay throws NPE when no KVs to be replayed in a WALEdit

Modified:
    hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java

Modified: hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java?rev=1529252&r1=1529251&r2=1529252&view=diff
==============================================================================
--- hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java
(original)
+++ hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java
Fri Oct  4 18:42:57 2013
@@ -1478,7 +1478,7 @@ public class HLogSplitter {
         }
 
         // skip the edit
-        if (needSkip) continue;
+        if (loc == null || needSkip) continue;
 
         if (!skippedKVs.isEmpty()) {
           kvs.removeAll(skippedKVs);



Mime
View raw message