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 6f10434a5a
commit 17165d3df9
2 changed files with 6 additions and 0 deletions

View File

@ -559,6 +559,9 @@ Release 2.7.0 - UNRELEASED
HADOOP-11543. Improve help message for hadoop/yarn command.
(Brahma Reddy Battula via ozawa)
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 static S3AFileSystem createTestFileSystem(Configuration conf) throws
"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;
}