hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HBASE-2973) NPE in LogCleaner
Date Wed, 08 Sep 2010 23:33:33 GMT

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

stack resolved HBASE-2973.
--------------------------

    Fix Version/s: 0.90.0
       Resolution: Fixed

Committed this:

{code}
Index: src/main/java/org/apache/hadoop/hbase/master/LogCleaner.java
===================================================================
--- src/main/java/org/apache/hadoop/hbase/master/LogCleaner.java        (revision 995264)
+++ src/main/java/org/apache/hadoop/hbase/master/LogCleaner.java        (working copy)
@@ -123,7 +123,8 @@
   @Override
   protected void chore() {
     try {
-      FileStatus[] files = this.fs.listStatus(this.oldLogDir);
+      FileStatus [] files = this.fs.listStatus(this.oldLogDir);
+      if (files == null) return;
       int nbDeletedLog = 0;
       FILE: for (FileStatus file : files) {
         Path filePath = file.getPath();
{code}

> NPE in LogCleaner
> -----------------
>
>                 Key: HBASE-2973
>                 URL: https://issues.apache.org/jira/browse/HBASE-2973
>             Project: HBase
>          Issue Type: Bug
>            Reporter: stack
>             Fix For: 0.90.0
>
>
> From TRUNK:
> {code}
> 2010-09-08 15:52:42,221 DEBUG org.apache.hadoop.hbase.master.LogCleaner: Add log cleaner
in chain: org.apache.hadoop.hbase.master.TimeToLiveLogCleaner
> 2010-09-08 15:52:42,221 DEBUG org.apache.hadoop.hbase.replication.master.ReplicationLogCleaner:
Didn't find this log in ZK, deleting: null
> 2010-09-08 15:52:42,221 DEBUG org.apache.hadoop.hbase.master.LogCleaner: Add log cleaner
in chain: org.apache.hadoop.hbase.replication.master.ReplicationLogCleaner
> 2010-09-08 15:52:42,234 DEBUG org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher: <master-sv2borg185:60000>
Set watcher on existing znode /hbase/root-region-server
> 2010-09-08 15:52:42,235 DEBUG org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher: <master-sv2borg185:60000>
Retrieved 18 bytes of data from znode /hbase/root-region-server and set a watcher
> 2010-09-08 15:53:42,220 INFO org.apache.hadoop.hbase.master.ServerManager: 0 region servers,
0 dead, average load NaN[]
> 2010-09-08 15:53:42,227 ERROR org.apache.hadoop.hbase.master.LogCleaner: Caught exception
> java.lang.NullPointerException
>         at org.apache.hadoop.hbase.master.LogCleaner.chore(LogCleaner.java:128)
>         at org.apache.hadoop.hbase.Chore.run(Chore.java:66)
> 2010-09-08 15:54:42,221 INFO org.apache.hadoop.hbase.master.ServerManager: 0 region servers,
0 dead, average load NaN[]
> 2010-09-08 15:54:42,225 ERROR org.apache.hadoop.hbase.master.LogCleaner: Caught exception
> java.lang.NullPointerException
>         at org.apache.hadoop.hbase.master.LogCleaner.chore(LogCleaner.java:128)
>         at org.apache.hadoop.hbase.Chore.run(Chore.java:66)
> {code}

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


Mime
View raw message