Skip to content

Commit

Permalink
HADOOP-18372. ILoadTestS3ABulkDeleteThrottling failing. (#4642)
Browse files Browse the repository at this point in the history
Contributed by Ahmar Suhail
  • Loading branch information
ahmarsuhail authored and steveloughran committed Jul 27, 2022
1 parent 363f813 commit c653c58
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.contract.ContractTestUtils;
import org.apache.hadoop.fs.store.audit.AuditSpan;
import org.apache.hadoop.fs.s3a.S3AFileSystem;
import org.apache.hadoop.fs.s3a.S3ATestUtils;
import org.apache.hadoop.fs.s3a.auth.delegation.Csvout;
Expand Down Expand Up @@ -144,26 +145,25 @@ public ILoadTestS3ABulkDeleteThrottling(
@Override
protected Configuration createScaleConfiguration() {
Configuration conf = super.createScaleConfiguration();
S3ATestUtils.disableFilesystemCaching(conf);
return conf;
}

@Override
public void setup() throws Exception {
final Configuration conf = getConf();
S3ATestUtils.removeBaseAndBucketOverrides(conf,
EXPERIMENTAL_AWS_INTERNAL_THROTTLING,
BULK_DELETE_PAGE_SIZE,
USER_AGENT_PREFIX);
USER_AGENT_PREFIX,
ENABLE_MULTI_DELETE);
conf.setBoolean(EXPERIMENTAL_AWS_INTERNAL_THROTTLING, throttle);
Assertions.assertThat(pageSize)
.describedAs("page size")
.isGreaterThan(0);
conf.setInt(BULK_DELETE_PAGE_SIZE, pageSize);
conf.set(USER_AGENT_PREFIX,
String.format("ILoadTestS3ABulkDeleteThrottling-%s-%04d",
throttle, pageSize));

S3ATestUtils.disableFilesystemCaching(conf);
return conf;
}

@Override
public void setup() throws Exception {
final Configuration conf = getConf();
super.setup();
Assume.assumeTrue("multipart delete disabled",
conf.getBoolean(ENABLE_MULTI_DELETE, true));
Expand Down Expand Up @@ -246,7 +246,7 @@ private File deleteFiles(final int requestCount,
final ContractTestUtils.NanoTimer timer =
new ContractTestUtils.NanoTimer();
Exception ex = null;
try {
try (AuditSpan span = span()) {
fs.removeKeys(fileList, false);
} catch (IOException e) {
ex = e;
Expand Down

0 comments on commit c653c58

Please sign in to comment.