use of com.palantir.atlasdb.cassandra.ImmutableCassandraKeyValueServiceConfig in project atlasdb by palantir.
the class CassandraKeyValueServiceTableCreationIntegrationTest method setUp.
@Before
public void setUp() {
ImmutableCassandraKeyValueServiceConfig quickTimeoutConfig = ImmutableCassandraKeyValueServiceConfig.copyOf(CassandraContainer.KVS_CONFIG).withSchemaMutationTimeoutMillis(500);
kvs = CassandraKeyValueServiceImpl.create(quickTimeoutConfig, CassandraContainer.LEADER_CONFIG);
ImmutableCassandraKeyValueServiceConfig slowTimeoutConfig = ImmutableCassandraKeyValueServiceConfig.copyOf(CassandraContainer.KVS_CONFIG).withSchemaMutationTimeoutMillis(6 * 1000);
slowTimeoutKvs = CassandraKeyValueServiceImpl.create(slowTimeoutConfig, CassandraContainer.LEADER_CONFIG);
kvs.dropTable(AtlasDbConstants.TIMESTAMP_TABLE);
}
use of com.palantir.atlasdb.cassandra.ImmutableCassandraKeyValueServiceConfig in project atlasdb by palantir.
the class OneNodeDownTableManipulationTest method canCleanUpSchemaMutationLockTablesState.
@Test
public void canCleanUpSchemaMutationLockTablesState() throws Exception {
ImmutableCassandraKeyValueServiceConfig config = OneNodeDownTestSuite.CONFIG;
CassandraClientPool clientPool = OneNodeDownTestSuite.kvs.getClientPool();
SchemaMutationLockTables lockTables = new SchemaMutationLockTables(clientPool, config);
TracingQueryRunner queryRunner = new TracingQueryRunner(LoggerFactory.getLogger(TracingQueryRunner.class), new TracingPrefsConfig());
CassandraSchemaLockCleaner cleaner = CassandraSchemaLockCleaner.create(config, clientPool, lockTables, queryRunner);
cleaner.cleanLocksState();
}
Aggregations