Forráskód Böngészése

HADOOP-3269. Fix a case when namenode fails to restart
while processing a lease record. ((Tsz Wo (Nicholas), SZE via dhruba)



git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@649418 13f79535-47bb-0310-9956-ffa450edef68

Dhruba Borthakur 17 éve
szülő
commit
251b5a60d9
2 módosított fájl, 4 hozzáadás és 1 törlés
  1. 3 0
      CHANGES.txt
  2. 1 1
      src/java/org/apache/hadoop/dfs/FSNamesystem.java

+ 3 - 0
CHANGES.txt

@@ -47,6 +47,9 @@ Trunk (unreleased changes)
     HADOOP-3176.  Change lease record when a open-for-write-file 
     gets renamed. (dhruba)
 
+    HADOOP-3269.  Fix a case when namenode fails to restart
+    while processing a lease record.  ((Tsz Wo (Nicholas), SZE via dhruba)
+
 Release 0.17.0 - Unreleased
 
   INCOMPATIBLE CHANGES

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

@@ -4355,7 +4355,7 @@ class FSNamesystem implements FSConstants, FSNamesystemMBean {
     String overwrite;
     String replaceBy;
 
-    DFSFileInfo dinfo = getFileInfo(dst);
+    DFSFileInfo dinfo = dir.getFileInfo(dst);
     if (dinfo.isDir()) {
       Path spath = new Path(src);
       overwrite = spath.getParent().toString() + Path.SEPARATOR;