Permalink
Browse files

delete the temp files after uploading

  • Loading branch information...
spullara committed Jun 23, 2011
1 parent 37d7938 commit ff0d2777bd663fa08dc54a71b7de8db18c04e772
Showing with 4 additions and 0 deletions.
  1. +4 −0 s3archive/src/main/java/avrobase/s3archive/S3Archiver.java
@@ -445,6 +445,10 @@ public void roll(byte[] row) throws AvroBaseException {
}
} catch (IOException e) {
throw new AvroBaseException("Failed to read/write file: " + file, e);
+ } finally {
+ if (file != null) {
+ file.delete();
+ }
}
}

0 comments on commit ff0d277

Please sign in to comment.