hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r392442 - /lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobInProgress.java
Date Fri, 07 Apr 2006 22:47:30 GMT
Author: cutting
Date: Fri Apr  7 15:47:28 2006
New Revision: 392442

URL: http://svn.apache.org/viewcvs?rev=392442&view=rev
Log:
Remove .crc files too.

Modified:
    lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobInProgress.java

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobInProgress.java
URL: http://svn.apache.org/viewcvs/lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobInProgress.java?rev=392442&r1=392441&r2=392442&view=diff
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobInProgress.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/mapred/JobInProgress.java Fri Apr  7 15:47:28
2006
@@ -471,12 +471,13 @@
     synchronized void garbageCollect() {
       try {
         // Definitely remove the local-disk copy of the job file
+        FileSystem localFs = FileSystem.getNamed("local", conf);
         if (localJobFile != null) {
-            localJobFile.delete();
+            localFs.delete(localJobFile);
             localJobFile = null;
         }
         if (localJarFile != null) {
-            localJarFile.delete();
+            localFs.delete(localJarFile);
             localJarFile = null;
         }
 



Mime
View raw message