Преглед на файлове

Merge -r 765015:765016 to move the change of HADOOP-5644 from trunk to branch 0.18.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/branches/branch-0.18@765059 13f79535-47bb-0310-9956-ffa450edef68
Hairong Kuang преди 16 години
родител
ревизия
280e81989f
променени са 2 файла, в които са добавени 3 реда и са изтрити 4 реда
  1. 2 0
      CHANGES.txt
  2. 1 4
      src/hdfs/org/apache/hadoop/dfs/FSNamesystem.java

+ 2 - 0
CHANGES.txt

@@ -23,6 +23,8 @@ Release 0.18.4 - Unreleased
     HADOOP-5557. Fixes some minor problems in TestOverReplicatedBlocks.
     HADOOP-5557. Fixes some minor problems in TestOverReplicatedBlocks.
     (szetszwo)
     (szetszwo)
 
 
+    HADOOP-5644. Namnode is stuck in safe mode. (Suresh Srinivas via hairong)
+
 Release 0.18.3 - 2009-01-27
 Release 0.18.3 - 2009-01-27
 
 
   IMPROVEMENTS
   IMPROVEMENTS

+ 1 - 4
src/hdfs/org/apache/hadoop/dfs/FSNamesystem.java

@@ -1809,12 +1809,9 @@ class FSNamesystem implements FSConstants, FSNamesystemMBean {
       }
       }
     }
     }
 
 
-    // If this commit does not want to close the file, just persist
-    // blocks and return
+    // Return if this commit does not want to close the file
     String src = leaseManager.findPath(pendingFile);
     String src = leaseManager.findPath(pendingFile);
     if (!closeFile) {
     if (!closeFile) {
-      dir.persistBlocks(src, pendingFile);
-      getEditLog().logSync();
       LOG.info("commitBlockSynchronization(" + lastblock + ") successful");
       LOG.info("commitBlockSynchronization(" + lastblock + ") successful");
       return;
       return;
     }
     }