jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1225214 - /jmeter/trunk/src/core/org/apache/jmeter/samplers/DiskStoreSampleSender.java
Date Wed, 28 Dec 2011 16:13:26 GMT
Author: pmouawad
Date: Wed Dec 28 16:13:25 2011
New Revision: 1225214

URL: http://svn.apache.org/viewvc?rev=1225214&view=rev
Log:
Added warn when delete fails

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/samplers/DiskStoreSampleSender.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/samplers/DiskStoreSampleSender.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/samplers/DiskStoreSampleSender.java?rev=1225214&r1=1225213&r2=1225214&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/samplers/DiskStoreSampleSender.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/samplers/DiskStoreSampleSender.java Wed Dec 28
16:13:25 2011
@@ -116,7 +116,9 @@ public class DiskStoreSampleSender exten
                 log.error("returning sample", e);
             }
             IOUtils.closeQuietly(ois);
-            temporaryFile.delete();
+            if(!temporaryFile.delete()) {
+            	log.warn("Could not delete file:"+temporaryFile.getAbsolutePath());
+            }
         }
     }
 



Mime
View raw message