HADOOP-19072. S3A: Override fs.s3a.performance.flags for tests (ADDENDUM) (#6985)
This is a followup to #6543 which ensures all test pass in configurations where fs.s3a.performance.flags is set to "*" or contains "mkdirs" Contributed by VJ Jasani
This commit is contained in:
parent
321a6cc55e
commit
74ff00705c
@ -23,6 +23,7 @@
|
|||||||
import org.apache.hadoop.fs.contract.AbstractFSContract;
|
import org.apache.hadoop.fs.contract.AbstractFSContract;
|
||||||
|
|
||||||
import static org.apache.hadoop.fs.s3a.Constants.FS_S3A_CREATE_PERFORMANCE;
|
import static org.apache.hadoop.fs.s3a.Constants.FS_S3A_CREATE_PERFORMANCE;
|
||||||
|
import static org.apache.hadoop.fs.s3a.Constants.FS_S3A_PERFORMANCE_FLAGS;
|
||||||
import static org.apache.hadoop.fs.s3a.S3ATestUtils.removeBaseAndBucketOverrides;
|
import static org.apache.hadoop.fs.s3a.S3ATestUtils.removeBaseAndBucketOverrides;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -33,8 +34,11 @@ public class ITestS3AContractMkdir extends AbstractContractMkdirTest {
|
|||||||
@Override
|
@Override
|
||||||
protected Configuration createConfiguration() {
|
protected Configuration createConfiguration() {
|
||||||
Configuration conf = super.createConfiguration();
|
Configuration conf = super.createConfiguration();
|
||||||
removeBaseAndBucketOverrides(conf,
|
removeBaseAndBucketOverrides(
|
||||||
FS_S3A_CREATE_PERFORMANCE);
|
conf,
|
||||||
|
FS_S3A_CREATE_PERFORMANCE,
|
||||||
|
FS_S3A_PERFORMANCE_FLAGS);
|
||||||
|
conf.set(FS_S3A_PERFORMANCE_FLAGS, "");
|
||||||
return conf;
|
return conf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
|
||||||
import static org.apache.hadoop.fs.s3a.Constants.FS_S3A_CREATE_PERFORMANCE;
|
import static org.apache.hadoop.fs.s3a.Constants.FS_S3A_CREATE_PERFORMANCE;
|
||||||
|
import static org.apache.hadoop.fs.s3a.Constants.FS_S3A_PERFORMANCE_FLAGS;
|
||||||
import static org.apache.hadoop.fs.s3a.S3ATestUtils.removeBaseAndBucketOverrides;
|
import static org.apache.hadoop.fs.s3a.S3ATestUtils.removeBaseAndBucketOverrides;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -32,7 +33,8 @@ public void setUp() throws Exception {
|
|||||||
Configuration conf = new Configuration();
|
Configuration conf = new Configuration();
|
||||||
removeBaseAndBucketOverrides(
|
removeBaseAndBucketOverrides(
|
||||||
conf,
|
conf,
|
||||||
FS_S3A_CREATE_PERFORMANCE);
|
FS_S3A_CREATE_PERFORMANCE,
|
||||||
|
FS_S3A_PERFORMANCE_FLAGS);
|
||||||
fc = S3ATestUtils.createTestFileContext(conf);
|
fc = S3ATestUtils.createTestFileContext(conf);
|
||||||
super.setUp();
|
super.setUp();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user