use of com.palantir.atlasdb.cassandra.backup.transaction.Transactions3TableInteraction in project atlasdb by palantir.
the class RepairRangeFetcherTest method testRepairTxn3.
@Test
public void testRepairTxn3() {
List<TransactionsTableInteraction> interactions = ImmutableList.of(new Transactions3TableInteraction(range(1L, 10_000_000L)));
Map<String, Map<InetSocketAddress, RangeSet<LightweightOppToken>>> rangesForRepair = repairRangeFetcher.getTransactionTableRangesForRepair(interactions);
// Transactions3 is backed by Transactions2 under the hood, so this is the table that will be repaired.
assertThat(rangesForRepair.keySet()).containsExactly(TXN_2);
}
use of com.palantir.atlasdb.cassandra.backup.transaction.Transactions3TableInteraction in project atlasdb by palantir.
the class CassandraRepairEteTest method testRepairTxn3.
@Test
public void testRepairTxn3() {
List<String> tablesRepaired = new ArrayList<>();
BiConsumer<String, RangesForRepair> repairer = (table, _unused) -> tablesRepaired.add(table);
List<TransactionsTableInteraction> interactions = ImmutableList.of(new Transactions3TableInteraction(range(1L, 10_000_000L)));
cassandraRepairHelper.repairTransactionsTables(ATLAS_SERVICE, interactions, repairer);
// Transactions3 is backed by Transactions2 under the hood, so this is the table that will be repaired.
assertThat(tablesRepaired).containsExactly(TransactionConstants.TRANSACTIONS2_TABLE.getTableName());
}
Aggregations