浏览代码

commit a91eccff988dcaf30ed4bb3eae53f582f3f1448f
Author: Owen O'Malley <omalley@apache.org>
Date: Sat Sep 18 16:39:10 2010 -0700

actually do cleanup of user directories


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-patches@1077700 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 14 年之前
父节点
当前提交
896a57d2d5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/mapred/org/apache/hadoop/mapred/TaskTracker.java

+ 1 - 1
src/mapred/org/apache/hadoop/mapred/TaskTracker.java

@@ -558,7 +558,7 @@ public class TaskTracker implements MRConstants, TaskUmbilicalProtocol,
       for(FileStatus status: localFs.listStatus(new Path(root, SUBDIR))) {
         String owner = status.getOwner();
         String path = status.getPath().getName();
-        if (path.endsWith("/" + owner)) {
+        if (path.equals(owner)) {
           taskController.deleteAsUser(owner, "");
         }
       }