HADOOP-11520. Clean incomplete multi-part uploads in S3A tests. (Thomas Demoor via stevel)

This commit is contained in:
Steve Loughran 2015-02-06 20:59:56 +00:00
parent 9361fc8f70
commit af7368cf03
2 changed files with 6 additions and 0 deletions

View File

@ -178,6 +178,9 @@ Release 2.7.0 - UNRELEASED
HADOOP-11463 Replace method-local TransferManager object with
S3AFileSystem#transfers. (Ted Yu via stevel)
HADOOP-11520. Clean incomplete multi-part uploads in S3A tests.
(Thomas Demoor via stevel)
OPTIMIZATIONS
HADOOP-11323. WritableComparator#compare keeps reference to byte array.

View File

@ -45,6 +45,9 @@ public class S3ATestUtils {
"No test filesystem in " + TestS3AFileSystemContract.TEST_FS_S3A_NAME);
}
S3AFileSystem fs1 = new S3AFileSystem();
//enable purging in tests
conf.setBoolean(Constants.PURGE_EXISTING_MULTIPART, true);
conf.setInt(Constants.PURGE_EXISTING_MULTIPART_AGE, 0);
fs1.initialize(testURI, conf);
return fs1;
}