Parcourir la source

HADOOP-2460. When the namenode encounters ioerrors on writing a
transaction log, it stops writing new transactions to that one.
(Raghu Angadi via dhruba)



git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/branches/branch-0.15@605442 13f79535-47bb-0310-9956-ffa450edef68

Dhruba Borthakur il y a 17 ans
Parent
commit
6ea119258e
2 fichiers modifiés avec 11 ajouts et 6 suppressions
  1. 7 3
      CHANGES.txt
  2. 4 3
      src/java/org/apache/hadoop/dfs/FSEditLog.java

+ 7 - 3
CHANGES.txt

@@ -22,6 +22,13 @@ Branch 0.15 (unreleased)
     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
@@ -69,9 +76,6 @@ Release 0.15.1 - 2007-11-27
     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
 
   INCOMPATIBLE CHANGES

+ 4 - 3
src/java/org/apache/hadoop/dfs/FSEditLog.java

@@ -34,6 +34,7 @@ import java.nio.channels.FileChannel;
 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 @@ class FSEditLog {
           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);
       }
     }