use of com.palantir.atlasdb.keyvalue.impl.TrackingKeyValueService in project atlasdb by palantir.
the class SnapshotTransactionTest method setUp.
@Override
@Before
public void setUp() throws Exception {
super.setUp();
// Some KV stores need more nodes to be up to accomplish a delete, so we model that here as throwing
keyValueService = new TrackingKeyValueService(keyValueService) {
@Override
public void delete(TableReference tableRef, Multimap<Cell, Long> keys) {
throw new RuntimeException("cannot delete");
}
};
keyValueService.createTable(TABLE, AtlasDbConstants.GENERIC_TABLE_METADATA);
keyValueService.createTable(TABLE1, AtlasDbConstants.GENERIC_TABLE_METADATA);
keyValueService.createTable(TABLE2, AtlasDbConstants.GENERIC_TABLE_METADATA);
}
use of com.palantir.atlasdb.keyvalue.impl.TrackingKeyValueService in project atlasdb by palantir.
the class AtlasDbTestCase method setUp.
@Before
public void setUp() throws Exception {
timestampService = new InMemoryTimestampService();
KeyValueService kvs = getBaseKeyValueService();
keyValueServiceWithStats = new StatsTrackingKeyValueService(kvs);
keyValueService = new TrackingKeyValueService(keyValueServiceWithStats);
TransactionTables.createTables(kvs);
transactionService = TransactionServices.createTransactionService(kvs);
conflictDetectionManager = ConflictDetectionManagers.createWithoutWarmingCache(keyValueService);
sweepStrategyManager = SweepStrategyManagers.createDefault(keyValueService);
serializableTxManager = new TestTransactionManagerImpl(keyValueService, timestampService, lockClient, lockService, transactionService, conflictDetectionManager, sweepStrategyManager, wrappingSweepQueue);
txManager = new CachingTestTransactionManager(serializableTxManager);
}
Aggregations