Package org.apache.accumulo.test
Class BatchWriterInTabletServerIT
- java.lang.Object
-
- org.apache.accumulo.harness.AccumuloITBase
-
- org.apache.accumulo.harness.AccumuloClusterHarness
-
- org.apache.accumulo.test.BatchWriterInTabletServerIT
-
- All Implemented Interfaces:
ClusterUsers
,MiniClusterConfigurationCallback
public class BatchWriterInTabletServerIT extends AccumuloClusterHarness
Test writing to another table from inside an iterator.- See Also:
BatchWriterIterator
-
-
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
testName
-
Fields inherited from interface org.apache.accumulo.harness.MiniClusterConfigurationCallback
NO_CALLBACK
-
-
Constructor Summary
Constructors Constructor Description BatchWriterInTabletServerIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canRunTest(AccumuloClusterHarness.ClusterType type)
A test may not be capable of running against a given AccumuloCluster.void
testClearLocatorAndSplitWrite()
Fixed by ACCUMULO-4229.void
testNormalWrite()
This test should succeed.-
Methods inherited from class org.apache.accumulo.harness.AccumuloClusterHarness
cleanupTables, cleanupUsers, configureMiniCluster, getAdminPrincipal, getAdminToken, getAdminUser, getCluster, getClusterConfiguration, getClusterControl, getClusterType, getConnector, getFileSystem, getKdc, getUsableDir, getUser, setUp, setupCluster, teardownCluster, tearDownKdc
-
Methods inherited from class org.apache.accumulo.harness.AccumuloITBase
createTestDir, defaultTimeoutSeconds, getSslDir, getUniqueNames, testsShouldTimeout
-
-
-
-
Method Detail
-
canRunTest
public boolean canRunTest(AccumuloClusterHarness.ClusterType type)
Description copied from class:AccumuloClusterHarness
A test may not be capable of running against a given AccumuloCluster. Implementations can override this method to advertise that they cannot (or perhaps do not) want to run the test.- Overrides:
canRunTest
in classAccumuloClusterHarness
-
testNormalWrite
public void testNormalWrite() throws Exception
This test should succeed.- Throws:
Exception
-
testClearLocatorAndSplitWrite
public void testClearLocatorAndSplitWrite() throws Exception
Fixed by ACCUMULO-4229.This tests a situation that a client which shares a LocatorCache with the tablet server may fall into. Before the problem was fixed, adding a split after the Locator cache falls out of sync caused the BatchWriter to continuously attempt to write to an old, closed tablet. It would do so for 15 seconds until a timeout on the BatchWriter.
- Throws:
Exception
-
-