Class ReplicationIT
- java.lang.Object
-
- org.apache.accumulo.harness.AccumuloITBase
-
- org.apache.accumulo.test.functional.ConfigurableMacBase
-
- org.apache.accumulo.test.replication.ReplicationIT
-
public class ReplicationIT extends ConfigurableMacBase
Replication tests which verify expected functionality using a single MAC instance. A MockReplicaSystem is used to "fake" the peer instance that we're replicating to. This lets us test replication in a functional way without having to worry about two real systems.
-
-
Field Summary
-
Fields inherited from class org.apache.accumulo.test.functional.ConfigurableMacBase
cluster, ROOT_PASSWORD
-
Fields inherited from class org.apache.accumulo.harness.AccumuloITBase
testName
-
-
Constructor Summary
Constructors Constructor Description ReplicationIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
combinerWorksOnMetadata()
void
configure(MiniAccumuloConfigImpl cfg, org.apache.hadoop.conf.Configuration hadoopCoreSite)
void
correctClusterNameInWorkEntry()
void
correctRecordsCompleteFile()
int
defaultTimeoutSeconds()
time to wait per-method before declaring a timeout, in seconds.void
filesClosedAfterUnused()
void
noDeadlock()
void
noRecordsWithoutReplication()
void
replicatedStatusEntriesAreDeleted()
void
replicationEntriesPrecludeWalDeletion()
void
replicationRecordsAreClosedAfterGarbageCollection()
void
replicationTableCreated()
void
singleTableWithSingleTarget()
void
twoEntriesForTwoTables()
void
verifyReplicationTableConfig()
-
Methods inherited from class org.apache.accumulo.test.functional.ConfigurableMacBase
beforeClusterStart, configureForEnvironment, configureForSsl, exec, getClientConfig, getCluster, getConnector, getMonitor, setUp, tearDown
-
Methods inherited from class org.apache.accumulo.harness.AccumuloITBase
createTestDir, getSslDir, getUniqueNames, testsShouldTimeout
-
-
-
-
Method Detail
-
defaultTimeoutSeconds
public int defaultTimeoutSeconds()
Description copied from class:AccumuloITBase
time to wait per-method before declaring a timeout, in seconds.- Overrides:
defaultTimeoutSeconds
in classAccumuloITBase
-
configure
public void configure(MiniAccumuloConfigImpl cfg, org.apache.hadoop.conf.Configuration hadoopCoreSite)
- Overrides:
configure
in classConfigurableMacBase
-
replicationTableCreated
public void replicationTableCreated() throws AccumuloException, AccumuloSecurityException
-
verifyReplicationTableConfig
public void verifyReplicationTableConfig() throws AccumuloException, TableNotFoundException, AccumuloSecurityException
-
correctRecordsCompleteFile
public void correctRecordsCompleteFile() throws Exception
- Throws:
Exception
-
noRecordsWithoutReplication
public void noRecordsWithoutReplication() throws Exception
- Throws:
Exception
-
replicationEntriesPrecludeWalDeletion
public void replicationEntriesPrecludeWalDeletion() throws Exception
- Throws:
Exception
-
singleTableWithSingleTarget
public void singleTableWithSingleTarget() throws Exception
- Throws:
Exception
-
correctClusterNameInWorkEntry
public void correctClusterNameInWorkEntry() throws Exception
- Throws:
Exception
-
replicationRecordsAreClosedAfterGarbageCollection
public void replicationRecordsAreClosedAfterGarbageCollection() throws Exception
- Throws:
Exception
-
-