Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

delete the temp files after uploading

  • Loading branch information...
commit ff0d2777bd663fa08dc54a71b7de8db18c04e772 1 parent 37d7938
Sam Pullara authored June 23, 2011
4  s3archive/src/main/java/avrobase/s3archive/S3Archiver.java
@@ -445,6 +445,10 @@ public void roll(byte[] row) throws AvroBaseException {
445 445
       }
446 446
     } catch (IOException e) {
447 447
       throw new AvroBaseException("Failed to read/write file: " + file, e);
  448
+    } finally {
  449
+      if (file != null) {
  450
+        file.delete();
  451
+      }
448 452
     }
449 453
   }
450 454
 

0 notes on commit ff0d277

Please sign in to comment.
Something went wrong with that request. Please try again.