You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by dh...@apache.org on 2007/12/19 07:17:58 UTC

svn commit: r605442 - in /lucene/hadoop/branches/branch-0.15: CHANGES.txt src/java/org/apache/hadoop/dfs/FSEditLog.java

Author: dhruba
Date: Tue Dec 18 22:17:56 2007
New Revision: 605442

URL: http://svn.apache.org/viewvc?rev=605442&view=rev
Log:
HADOOP-2460.  When the namenode encounters ioerrors on writing a
transaction log, it stops writing new transactions to that one.
(Raghu Angadi via dhruba)


Modified:
    lucene/hadoop/branches/branch-0.15/CHANGES.txt
    lucene/hadoop/branches/branch-0.15/src/java/org/apache/hadoop/dfs/FSEditLog.java

Modified: lucene/hadoop/branches/branch-0.15/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/branches/branch-0.15/CHANGES.txt?rev=605442&r1=605441&r2=605442&view=diff
==============================================================================
--- lucene/hadoop/branches/branch-0.15/CHANGES.txt (original)
+++ lucene/hadoop/branches/branch-0.15/CHANGES.txt Tue Dec 18 22:17:56 2007
@@ -22,6 +22,13 @@
     and then tries to create the JobInProgress object. 
     (Johan Oskarsson via ddas)
 
+    HADOOP-2422.  dfs -cat multiple files fail with 'Unable to write to 
+    output stream'.  (Raghu Angadi via dhruba)
+
+    HADOOP-2460.  When the namenode encounters ioerrors on writing a
+    transaction log, it stops writing new transactions to that one.
+    (Raghu Angadi via dhruba)
+
   IMPROVEMENTS
 
     HADOOP-2160.  Remove project-level, non-user documentation from
@@ -68,9 +75,6 @@
     HADOOP-2205.  Regenerate the Hadoop website since some of the changes made
     by HADOOP-1917 weren't correctly copied over to the trunk/docs directory. 
     Also fixed a couple of minor typos and broken links. (acmurthy)
-
-    HADOOP-2422.  dfs -cat multiple files fail with 'Unable to write to 
-    output stream'.  (Raghu Angadi via dhruba)
 
 Release 0.15.0 - 2007-11-2
 

Modified: lucene/hadoop/branches/branch-0.15/src/java/org/apache/hadoop/dfs/FSEditLog.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/branches/branch-0.15/src/java/org/apache/hadoop/dfs/FSEditLog.java?rev=605442&r1=605441&r2=605442&view=diff
==============================================================================
--- lucene/hadoop/branches/branch-0.15/src/java/org/apache/hadoop/dfs/FSEditLog.java (original)
+++ lucene/hadoop/branches/branch-0.15/src/java/org/apache/hadoop/dfs/FSEditLog.java Tue Dec 18 22:17:56 2007
@@ -34,6 +34,7 @@
 import org.apache.hadoop.io.ArrayWritable;
 import org.apache.hadoop.io.UTF8;
 import org.apache.hadoop.io.Writable;
+import org.apache.hadoop.util.StringUtils;
 
 /**
  * FSEditLog maintains a log of the namespace modifications.
@@ -345,10 +346,10 @@
           Runtime.getRuntime().exit(-1);
       }
       try {
-        processIOError(idx);         
+        processIOError(j);         
       } catch (IOException e) {
-        FSNamesystem.LOG.error("Unable to sync edit log. " +
-                               "Fatal Error.");
+        FSNamesystem.LOG.error("Unable to sync edit log. Fatal Error : " + 
+                               StringUtils.stringifyException(e));
         Runtime.getRuntime().exit(-1);
       }
     }