use of com.palantir.atlasdb.keyvalue.cassandra.CassandraSchemaLockCleaner 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