Class ExternalCompactionProgressIT
- java.lang.Object
-
- org.apache.accumulo.harness.WithTestNames
-
- org.apache.accumulo.harness.AccumuloITBase
-
- org.apache.accumulo.harness.AccumuloClusterHarness
-
- org.apache.accumulo.test.compaction.ExternalCompactionProgressIT
-
- All Implemented Interfaces:
ClusterUsers
,MiniClusterConfigurationCallback
public class ExternalCompactionProgressIT extends AccumuloClusterHarness
Tests that external compactions report progress from start to finish. To prevent flaky test failures, we only measure progress in quarter segments: STARTED, QUARTER, HALF, THREE_QUARTERS. We can detect if the compaction finished without errors but the coordinator will never report 100% progress since it will remove the ECID upon completion. TheSlowIterator
is used to control the length of time it takes to complete the compaction.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.accumulo.harness.AccumuloClusterHarness
AccumuloClusterHarness.ClusterType
-
Nested classes/interfaces inherited from interface org.apache.accumulo.harness.MiniClusterConfigurationCallback
MiniClusterConfigurationCallback.NoCallback
-
-
Field Summary
-
Fields inherited from class org.apache.accumulo.harness.AccumuloClusterHarness
cluster, clusterConf, krb, type
-
Fields inherited from class org.apache.accumulo.harness.AccumuloITBase
MINI_CLUSTER_ONLY, random, STANDALONE_CAPABLE_CLUSTER, SUNNY_DAY, ZOOKEEPER_TESTING_SERVER
-
Fields inherited from interface org.apache.accumulo.harness.MiniClusterConfigurationCallback
NO_CALLBACK
-
-
Constructor Summary
Constructors Constructor Description ExternalCompactionProgressIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configureMiniCluster(MiniAccumuloConfigImpl cfg, org.apache.hadoop.conf.Configuration coreSite)
Thread
startChecker()
void
testProgress()
-
Methods inherited from class org.apache.accumulo.harness.AccumuloClusterHarness
canRunTest, cleanupTables, cleanupUsers, getAdminPrincipal, getAdminToken, getAdminUser, getClientInfo, getClientProps, getCluster, getClusterConfiguration, getClusterControl, getClusterType, getFileSystem, getKdc, getServerContext, getUser, saslEnabled, setupCluster, setUpHarness, teardownCluster, tearDownHarness
-
Methods inherited from class org.apache.accumulo.harness.AccumuloITBase
createTestDir, defaultTimeout, getOnlyElement, getOnlyElement, getSslDir, getUniqueNames, initJar
-
Methods inherited from class org.apache.accumulo.harness.WithTestNames
setTestName, testName
-
-
-
-
Method Detail
-
configureMiniCluster
public void configureMiniCluster(MiniAccumuloConfigImpl cfg, org.apache.hadoop.conf.Configuration coreSite)
- Specified by:
configureMiniCluster
in interfaceMiniClusterConfigurationCallback
- Overrides:
configureMiniCluster
in classAccumuloClusterHarness
-
startChecker
public Thread startChecker()
-
-