Ver Fonte

HADOOP-75. In DFS, only check for a complete file when the file is closed, rather than as each block is written. Contributed by Milind.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@410402 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting há 19 anos atrás
pai
commit
9091241fe3
2 ficheiros alterados com 4 adições e 6 exclusões
  1. 4 0
      CHANGES.txt
  2. 0 6
      src/java/org/apache/hadoop/dfs/FSNamesystem.java

+ 4 - 0
CHANGES.txt

@@ -81,6 +81,10 @@ Trunk (unreleased)
 21. HADOOP-222.  Add a -setrep option to the dfs commands that alters
     file replication levels.  (Johan Oskarson via cutting)
 
+22. HADOOP-75.  In DFS, only check for a complete file when the file
+    is closed, rather than as each block is written.
+    (Milind Bhandarkar via cutting)
+
 
 Release 0.2.1 - 2006-05-12
 

+ 0 - 6
src/java/org/apache/hadoop/dfs/FSNamesystem.java

@@ -421,12 +421,6 @@ class FSNamesystem implements FSConstants {
           throw new IOException("File " + src + " created during write");
         }
 
-        //
-        // If we fail this, bad things happen!
-        //
-        if (!checkFileProgress(src)) {
-          throw new NameNode.NotReplicatedYetException("Not replicated yet");
-        }
         
         // Get the array of replication targets 
         DatanodeInfo targets[] = chooseTargets(pendingFile.getReplication(),