HADOOP-17192. ITestS3AHugeFilesSSECDiskBlock failing (#2221)

Contributed by Mukund Thakur
This commit is contained in:
Mukund Thakur 2020-08-13 18:51:49 +05:30 committed by Steve Loughran
parent 99b120a06e
commit 571737f4ac
2 changed files with 6 additions and 3 deletions

View File

@ -23,6 +23,9 @@ import org.apache.hadoop.fs.s3a.Constants;
import org.apache.hadoop.fs.s3a.S3AEncryptionMethods;
import org.apache.hadoop.fs.s3a.S3ATestUtils;
import static org.apache.hadoop.fs.s3a.Constants.SERVER_SIDE_ENCRYPTION_ALGORITHM;
import static org.apache.hadoop.fs.s3a.Constants.SERVER_SIDE_ENCRYPTION_KEY;
import static org.apache.hadoop.fs.s3a.S3ATestUtils.removeBaseAndBucketOverrides;
import static org.apache.hadoop.fs.s3a.S3ATestUtils.skipIfEncryptionTestsDisabled;
/**
@ -45,6 +48,8 @@ public class ITestS3AHugeFilesSSECDiskBlocks
@Override
protected Configuration createScaleConfiguration() {
Configuration conf = super.createScaleConfiguration();
removeBaseAndBucketOverrides(conf, SERVER_SIDE_ENCRYPTION_KEY,
SERVER_SIDE_ENCRYPTION_ALGORITHM);
S3ATestUtils.disableFilesystemCaching(conf);
conf.set(Constants.SERVER_SIDE_ENCRYPTION_ALGORITHM,
getSSEAlgorithm().getMethod());

View File

@ -105,9 +105,7 @@ public class S3AScaleTestBase extends AbstractS3ATestBase {
* @return the configuration.
*/
private synchronized Configuration demandCreateConfiguration() {
if (conf == null) {
conf = createScaleConfiguration();
}
conf = createScaleConfiguration();
return conf;
}