hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeffr...@apache.org
Subject svn commit: r1529247 - /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java
Date Fri, 04 Oct 2013 18:20:35 GMT
Author: jeffreyz
Date: Fri Oct  4 18:20:34 2013
New Revision: 1529247

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

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

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java?rev=1529247&r1=1529246&r2=1529247&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java
(original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java
Fri Oct  4 18:20:34 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