Skip to content

Commit

Permalink
Disable PrefetchingInputStream tests and write-only CommitProtocol tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fuatbasik committed Dec 12, 2024
1 parent 87fa86d commit 122dd59
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

import static org.apache.hadoop.fs.s3a.Constants.PREFETCH_BLOCK_SIZE_KEY;
import static org.apache.hadoop.fs.s3a.Constants.PREFETCH_ENABLED_KEY;
import static org.apache.hadoop.fs.s3a.S3ATestUtils.skipIfAnalyticsAcceleratorEnabled;
import static org.apache.hadoop.fs.statistics.IOStatisticAssertions.assertThatStatisticMaximum;
import static org.apache.hadoop.fs.statistics.IOStatisticAssertions.verifyStatisticCounterValue;
import static org.apache.hadoop.fs.statistics.IOStatisticAssertions.verifyStatisticGaugeValue;
Expand Down Expand Up @@ -75,6 +76,12 @@ public ITestS3APrefetchingInputStream() {
private static final int INTERVAL_MILLIS = 500;
private static final int BLOCK_SIZE = S_1K * 10;

@Override
public void setup() throws Exception {
super.setup();
skipIfAnalyticsAcceleratorEnabled(this.createConfiguration());
}

@Override
public Configuration createConfiguration() {
Configuration conf = super.createConfiguration();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,18 @@
import org.apache.hadoop.mapreduce.TaskAttemptContext;

import static org.apache.hadoop.fs.contract.ContractTestUtils.skip;
import static org.apache.hadoop.fs.s3a.S3ATestUtils.skipIfAnalyticsAcceleratorEnabled;

/** ITest of the low level protocol methods. */
public class ITestPartitionedCommitProtocol extends ITestStagingCommitProtocol {


@Override
public void setup() throws Exception {
super.setup();
skipIfAnalyticsAcceleratorEnabled(getConfiguration());
}

@Override
protected String suitename() {
return "ITestPartitionedCommitProtocol";
Expand Down

0 comments on commit 122dd59

Please sign in to comment.