hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1077700 - /hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/TaskTracker.java
Date Fri, 04 Mar 2011 04:45:56 GMT
Author: omalley
Date: Fri Mar  4 04:45:55 2011
New Revision: 1077700

URL: http://svn.apache.org/viewvc?rev=1077700&view=rev
Log:
commit a91eccff988dcaf30ed4bb3eae53f582f3f1448f
Author: Owen O'Malley <omalley@apache.org>
Date:   Sat Sep 18 16:39:10 2010 -0700

    actually do cleanup of user directories

Modified:
    hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/TaskTracker.java

Modified: hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/TaskTracker.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/TaskTracker.java?rev=1077700&r1=1077699&r2=1077700&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/TaskTracker.java
(original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/TaskTracker.java
Fri Mar  4 04:45:55 2011
@@ -558,7 +558,7 @@ public class TaskTracker implements MRCo
       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, "");
         }
       }



Mime
View raw message