Class BulkFailureIT
- java.lang.Object
-
- org.apache.accumulo.harness.AccumuloITBase
-
- org.apache.accumulo.harness.AccumuloClusterHarness
-
- org.apache.accumulo.test.functional.BulkFailureIT
-
- All Implemented Interfaces:
ClusterUsers
,MiniClusterConfigurationCallback
public class BulkFailureIT extends AccumuloClusterHarness
-
-
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 BulkFailureIT()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static TabletClientService.Iface
getClient(ClientContext context, KeyExtent extent)
static Set<org.apache.hadoop.fs.Path>
getFiles(AccumuloClient connector, KeyExtent extent)
static Set<org.apache.hadoop.fs.Path>
getLoaded(AccumuloClient connector, KeyExtent extent)
protected void
runTest(String table, long fateTxid, org.apache.accumulo.test.functional.BulkFailureIT.Loader loader)
This test verifies two things.void
testImportCompactionImport()
-
Methods inherited from class org.apache.accumulo.harness.AccumuloClusterHarness
canRunTest, cleanupTables, cleanupUsers, configureMiniCluster, getAdminPrincipal, getAdminToken, getAdminUser, getClientInfo, getClientProps, getCluster, getClusterConfiguration, getClusterControl, getClusterType, getFileSystem, getKdc, getServerContext, getUsableDir, getUser, saslEnabled, setupCluster, setUpHarness, teardownCluster, tearDownHarness
-
Methods inherited from class org.apache.accumulo.harness.AccumuloITBase
createTestDir, defaultTimeoutSeconds, getSslDir, getUniqueNames, testsShouldTimeout
-
-
-
-
Method Detail
-
testImportCompactionImport
public void testImportCompactionImport() throws Exception
- Throws:
Exception
-
runTest
protected void runTest(String table, long fateTxid, org.apache.accumulo.test.functional.BulkFailureIT.Loader loader) throws IOException, AccumuloException, AccumuloSecurityException, TableExistsException, org.apache.zookeeper.KeeperException, InterruptedException, Exception, FileNotFoundException, TableNotFoundException
This test verifies two things. First it ensures that after a bulk imported file is compacted that import request are ignored. Second it ensures that after the bulk import transaction is canceled that import request fail. The public API for bulk import can not be used for this test. Internal (non public API) RPCs and Zookeeper state is manipulated directly. This is the only way to interleave compactions with multiple, duplicate import RPC request.- Throws:
IOException
AccumuloException
AccumuloSecurityException
TableExistsException
org.apache.zookeeper.KeeperException
InterruptedException
Exception
FileNotFoundException
TableNotFoundException
-
getLoaded
public static Set<org.apache.hadoop.fs.Path> getLoaded(AccumuloClient connector, KeyExtent extent) throws TableNotFoundException
- Throws:
TableNotFoundException
-
getFiles
public static Set<org.apache.hadoop.fs.Path> getFiles(AccumuloClient connector, KeyExtent extent) throws TableNotFoundException
- Throws:
TableNotFoundException
-
getClient
protected static TabletClientService.Iface getClient(ClientContext context, KeyExtent extent) throws AccumuloException, AccumuloSecurityException, TableNotFoundException, org.apache.thrift.transport.TTransportException
- Throws:
AccumuloException
AccumuloSecurityException
TableNotFoundException
org.apache.thrift.transport.TTransportException
-
-