Package org.apache.accumulo.test
Class VolumeChooserIT
- java.lang.Object
-
- org.apache.accumulo.harness.WithTestNames
-
- org.apache.accumulo.harness.AccumuloITBase
-
- org.apache.accumulo.test.functional.ConfigurableMacBase
-
- org.apache.accumulo.test.VolumeChooserIT
-
public class VolumeChooserIT extends ConfigurableMacBase
-
-
Field Summary
Fields Modifier and Type Field Description static String[]
alpha_rows
static String
PERTABLE_CHOOSER_PROP
-
Fields inherited from class org.apache.accumulo.test.functional.ConfigurableMacBase
cluster, log, ROOT_PASSWORD
-
Fields inherited from class org.apache.accumulo.harness.AccumuloITBase
MINI_CLUSTER_ONLY, random, STANDALONE_CAPABLE_CLUSTER, SUNNY_DAY, ZOOKEEPER_TESTING_SERVER
-
-
Constructor Summary
Constructors Constructor Description VolumeChooserIT()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addSplits(AccumuloClient accumuloClient, String tableName)
void
configure(MiniAccumuloConfigImpl cfg, org.apache.hadoop.conf.Configuration hadoopCoreSite)
protected Duration
defaultTimeout()
Time to wait per-method before declaring a timeout, in seconds.void
includeSpecialVolumeForTable()
void
twoTablesDiffChoosers()
void
twoTablesPreferredVolumeChooser()
void
twoTablesRandomVolumeChooser()
static void
verifyNoVolumes(AccumuloClient accumuloClient, Range tableRange)
static void
verifyVolumes(AccumuloClient accumuloClient, Range tableRange, String vol)
static void
verifyWaLogVolumes(AccumuloClient accumuloClient, Range tableRange, String vol)
void
waLogsSentToConfiguredVolumes()
static void
writeAndReadData(AccumuloClient accumuloClient, String tableName)
static void
writeDataToTable(AccumuloClient accumuloClient, String tableName, String[] rows)
-
Methods inherited from class org.apache.accumulo.test.functional.ConfigurableMacBase
beforeClusterStart, configureForEnvironment, configureForSsl, exec, getClientProperties, getCluster, getServerContext, setUp, tearDown
-
Methods inherited from class org.apache.accumulo.harness.AccumuloITBase
createTestDir, getOnlyElement, getOnlyElement, getSslDir, getUniqueNames, initJar
-
Methods inherited from class org.apache.accumulo.harness.WithTestNames
setTestName, testName
-
-
-
-
Method Detail
-
defaultTimeout
protected Duration defaultTimeout()
Description copied from class:AccumuloITBase
Time to wait per-method before declaring a timeout, in seconds.- Overrides:
defaultTimeout
in classAccumuloITBase
-
configure
public void configure(MiniAccumuloConfigImpl cfg, org.apache.hadoop.conf.Configuration hadoopCoreSite)
- Overrides:
configure
in classConfigurableMacBase
-
addSplits
public static void addSplits(AccumuloClient accumuloClient, String tableName) throws TableNotFoundException, AccumuloException, AccumuloSecurityException
-
writeAndReadData
public static void writeAndReadData(AccumuloClient accumuloClient, String tableName) throws Exception
- Throws:
Exception
-
writeDataToTable
public static void writeDataToTable(AccumuloClient accumuloClient, String tableName, String[] rows) throws Exception
- Throws:
Exception
-
verifyVolumes
public static void verifyVolumes(AccumuloClient accumuloClient, Range tableRange, String vol) throws Exception
- Throws:
Exception
-
verifyNoVolumes
public static void verifyNoVolumes(AccumuloClient accumuloClient, Range tableRange) throws Exception
- Throws:
Exception
-
verifyWaLogVolumes
public static void verifyWaLogVolumes(AccumuloClient accumuloClient, Range tableRange, String vol) throws TableNotFoundException
- Throws:
TableNotFoundException
-
twoTablesPreferredVolumeChooser
@Test public void twoTablesPreferredVolumeChooser() throws Exception
- Throws:
Exception
-
twoTablesRandomVolumeChooser
@Test public void twoTablesRandomVolumeChooser() throws Exception
- Throws:
Exception
-
includeSpecialVolumeForTable
@Test public void includeSpecialVolumeForTable() throws Exception
- Throws:
Exception
-
-