hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acmur...@apache.org
Subject svn commit: r1418127 - /hadoop/common/branches/branch-1.1/src/mapred/org/apache/hadoop/mapred/TaskLog.java
Date Thu, 06 Dec 2012 23:31:21 GMT
Author: acmurthy
Date: Thu Dec  6 23:31:21 2012
New Revision: 1418127

URL: http://svn.apache.org/viewvc?rev=1418127&view=rev
Log:
Merge -c 1360252 from branch-1 to branch-1.1 to fix MAPREDUCE-3837. Fixed TaskLog to check
for existence of task-attempt log directory before trying to create it.

Modified:
    hadoop/common/branches/branch-1.1/src/mapred/org/apache/hadoop/mapred/TaskLog.java

Modified: hadoop/common/branches/branch-1.1/src/mapred/org/apache/hadoop/mapred/TaskLog.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1.1/src/mapred/org/apache/hadoop/mapred/TaskLog.java?rev=1418127&r1=1418126&r2=1418127&view=diff
==============================================================================
--- hadoop/common/branches/branch-1.1/src/mapred/org/apache/hadoop/mapred/TaskLog.java (original)
+++ hadoop/common/branches/branch-1.1/src/mapred/org/apache/hadoop/mapred/TaskLog.java Thu
Dec  6 23:31:21 2012
@@ -100,7 +100,7 @@ public class TaskLog {
     String strAttemptLogDir = getTaskAttemptLogDir(taskID, 
         cleanupSuffix, localDirs);
     File attemptLogDir = new File(strAttemptLogDir);
-    if (!attemptLogDir.mkdirs()) {
+    if (!attemptLogDir.exists() && !attemptLogDir.mkdirs()) {
       throw new IOException("Creation of " + attemptLogDir + " failed.");
     }
     String strLinkAttemptLogDir = 



Mime
View raw message