ソースを参照

HADOOP-2209. SecondaryNamenode process exits if it encounters exceptions
that it cannot handle. (Dhruba Borthakur via dhruba)



git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@599586 13f79535-47bb-0310-9956-ffa450edef68

Dhruba Borthakur 17 年 前
コミット
a7bfbfafa1
2 ファイル変更8 行追加0 行削除
  1. 3 0
      CHANGES.txt
  2. 5 0
      src/java/org/apache/hadoop/dfs/SecondaryNameNode.java

+ 3 - 0
CHANGES.txt

@@ -169,6 +169,9 @@ Trunk (unreleased changes)
     an infinite loop while deleting excess replicas that were created by 
     block rebalancing.  (Hairong Kuang via dhruba)
 
+    HADOOP-2209. SecondaryNamenode process exits if it encounters exceptions 
+    that it cannot handle.  (Dhruba Borthakur via dhruba)
+
 Branch 0.15 (unreleased)
 
   BUG FIXES

+ 5 - 0
src/java/org/apache/hadoop/dfs/SecondaryNameNode.java

@@ -196,6 +196,11 @@ public class SecondaryNameNode implements FSConstants, Runnable {
         LOG.error("Exception in doCheckpoint:");
         LOG.error(StringUtils.stringifyException(e));
         e.printStackTrace();
+      } catch (Throwable e) {
+        LOG.error("Throwable Exception in doCheckpoint:");
+        LOG.error(StringUtils.stringifyException(e));
+        e.printStackTrace();
+        Runtime.getRuntime().exit(-1);
       }
     }
   }