瀏覽代碼

Merge -r 755225:755226 from trunk onto 0.20 branch. Fixes HADOOP-5483.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/branches/branch-0.20@755228 13f79535-47bb-0310-9956-ffa450edef68
Devaraj Das 16 年之前
父節點
當前提交
14855c0faf
共有 2 個文件被更改,包括 7 次插入3 次删除
  1. 3 0
      CHANGES.txt
  2. 4 3
      src/mapred/org/apache/hadoop/mapred/CleanupQueue.java

+ 3 - 0
CHANGES.txt

@@ -739,6 +739,9 @@ Release 0.20.0 - Unreleased
     and that brings down the log messages in the JobClient to do with
     and that brings down the log messages in the JobClient to do with
     NetworkTopology.add significantly. (Jothi Padmanabhan via ddas)
     NetworkTopology.add significantly. (Jothi Padmanabhan via ddas)
 
 
+    HADOOP-5483. Fixes a problem in the Directory Cleanup Thread due to which
+    TestMiniMRWithDFS sometimes used to fail. (ddas) 
+
 Release 0.19.2 - Unreleased
 Release 0.19.2 - Unreleased
 
 
   BUG FIXES
   BUG FIXES

+ 4 - 3
src/mapred/org/apache/hadoop/mapred/CleanupQueue.java

@@ -91,10 +91,11 @@ class CleanupQueue {
           FileSystem fs = pathAndConf.path.getFileSystem(pathAndConf.conf);
           FileSystem fs = pathAndConf.path.getFileSystem(pathAndConf.conf);
           fs.delete(pathAndConf.path, true);
           fs.delete(pathAndConf.path, true);
           LOG.debug("DELETED " + pathAndConf.path);
           LOG.debug("DELETED " + pathAndConf.path);
-        } catch (IOException e) {
-          LOG.warn("Error deleting path" + pathAndConf.path);
         } catch (InterruptedException t) {
         } catch (InterruptedException t) {
-        }
+          return;
+        } catch (Exception e) {
+          LOG.warn("Error deleting path" + pathAndConf.path);
+        } 
       }
       }
     }
     }
   }
   }