Skip to content

Commit 571737f

Browse files
mukund-thakursteveloughran
authored andcommitted
HADOOP-17192. ITestS3AHugeFilesSSECDiskBlock failing (#2221)
Contributed by Mukund Thakur
1 parent 99b120a commit 571737f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/scale/ITestS3AHugeFilesSSECDiskBlocks.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
import org.apache.hadoop.fs.s3a.S3AEncryptionMethods;
2424
import org.apache.hadoop.fs.s3a.S3ATestUtils;
2525

26+
import static org.apache.hadoop.fs.s3a.Constants.SERVER_SIDE_ENCRYPTION_ALGORITHM;
27+
import static org.apache.hadoop.fs.s3a.Constants.SERVER_SIDE_ENCRYPTION_KEY;
28+
import static org.apache.hadoop.fs.s3a.S3ATestUtils.removeBaseAndBucketOverrides;
2629
import static org.apache.hadoop.fs.s3a.S3ATestUtils.skipIfEncryptionTestsDisabled;
2730

2831
/**
@@ -45,6 +48,8 @@ public void setup() throws Exception {
4548
@Override
4649
protected Configuration createScaleConfiguration() {
4750
Configuration conf = super.createScaleConfiguration();
51+
removeBaseAndBucketOverrides(conf, SERVER_SIDE_ENCRYPTION_KEY,
52+
SERVER_SIDE_ENCRYPTION_ALGORITHM);
4853
S3ATestUtils.disableFilesystemCaching(conf);
4954
conf.set(Constants.SERVER_SIDE_ENCRYPTION_ALGORITHM,
5055
getSSEAlgorithm().getMethod());

hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/scale/S3AScaleTestBase.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ public void setup() throws Exception {
105105
* @return the configuration.
106106
*/
107107
private synchronized Configuration demandCreateConfiguration() {
108-
if (conf == null) {
109-
conf = createScaleConfiguration();
110-
}
108+
conf = createScaleConfiguration();
111109
return conf;
112110
}
113111

0 commit comments

Comments
 (0)