[ 
https://issues.apache.org/jira/browse/HBASE-1484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Clint Morgan reopened HBASE-1484:
---------------------------------


I get a NPE:

java.lang.NullPointerException
        at org.apache.hadoop.hbase.regionserver.HLog$1.run(HLog.java:912)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:637)

This fixes it:

Index: src/java/org/apache/hadoop/hbase/regionserver/HLog.java
===================================================================
--- src/java/org/apache/hadoop/hbase/regionserver/HLog.java     (revision 
782058)
+++ src/java/org/apache/hadoop/hbase/regionserver/HLog.java     (working copy)
@@ -888,7 +888,8 @@
                       SequenceFile.Writer w =
                         SequenceFile.createWriter(fs, conf, logfile,
                           HLogKey.class, HLogEdit.class, 
getCompressionType(conf));
-                      logWriters.put(key, new WriterAndPath(logfile, w));
+                      wap = new WriterAndPath(logfile, w);
+                      logWriters.put(key, wap);
                       if (LOG.isDebugEnabled()) {
                         LOG.debug("Creating new hlog file writer for path "
                             + logfile + " and region " + Bytes.toString(key));


> commit log split writes files with newest edits first (since hbase-1430); 
> should be other way round
> ---------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-1484
>                 URL: https://issues.apache.org/jira/browse/HBASE-1484
>             Project: Hadoop HBase
>          Issue Type: Bug
>            Reporter: stack
>            Assignee: stack
>             Fix For: 0.20.0
>
>         Attachments: 1484.patch
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to