Browse Source

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

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/branches/branch-0.19@765063 13f79535-47bb-0310-9956-ffa450edef68
Hairong Kuang 16 years ago
parent
commit
13a9396ac3
2 changed files with 3 additions and 4 deletions
  1. 2 0
      CHANGES.txt
  2. 1 4
      src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java

+ 2 - 0
CHANGES.txt

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

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

@@ -1957,12 +1957,9 @@ public 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);
     if (!closeFile) {
-      dir.persistBlocks(src, pendingFile);
-      getEditLog().logSync();
       LOG.info("commitBlockSynchronization(" + lastblock + ") successful");
       return;
     }