hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r555403 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/dfs/FSEditLog.java src/java/org/apache/hadoop/dfs/FSNamesystem.java
Date Wed, 11 Jul 2007 21:29:35 GMT
Author: cutting
Date: Wed Jul 11 14:29:34 2007
New Revision: 555403

URL: http://svn.apache.org/viewvc?view=rev&rev=555403
Log:
HADOOP-1486.  Fix so that fatal exceptions in namenode cause it to exit.  Contributed by Dhruba.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSEditLog.java
    lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=555403&r1=555402&r2=555403
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Wed Jul 11 14:29:34 2007
@@ -315,6 +315,9 @@
  97. HADOOP-911.  Fix a multithreading bug in libhdfs.
      (Christian Kunz)
 
+ 98. HADOOP-1486.  Fix so that fatal exceptions in namenode cause it
+     to exit.  (Dhruba Borthakur via cutting)
+
 
 Release 0.13.0 - 2007-06-08
 

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSEditLog.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSEditLog.java?view=diff&rev=555403&r1=555402&r2=555403
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSEditLog.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSEditLog.java Wed Jul 11 14:29:34
2007
@@ -429,7 +429,7 @@
           } catch (IOException e) {
             FSNamesystem.LOG.error("Unable to append to edit log. " +
                                    "Fatal Error.");
-            throw new RuntimeException("Unable to append to edit log. ");
+            Runtime.getRuntime().exit(-1);
           }
         }
       }
@@ -466,8 +466,7 @@
           } catch (IOException e) {
             FSNamesystem.LOG.error("Unable to sync edit log. " +
                                    "Fatal Error.");
-            throw new RuntimeException("Unable to sync edit log. " +
-                                       "Fatal Error.");
+            Runtime.getRuntime().exit(-1);
           }
         }
       }

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java?view=diff&rev=555403&r1=555402&r2=555403
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/FSNamesystem.java Wed Jul 11 14:29:34
2007
@@ -1745,6 +1745,9 @@
         } catch (InterruptedException ie) {
         } catch (IOException ie) {
           LOG.warn("ReplicationMonitor thread received exception. " + ie);
+        } catch (Throwable t) {
+          LOG.warn("ReplicationMonitor thread received Runtime exception. " + t);
+          Runtime.getRuntime().exit(-1);
         }
       }
     }



Mime
View raw message