Map<Cell, Long> cellToTs = Maps.newHashMap(); for (CellConflict c : Sets.union(spanningWrites, dominatingWrites)) { cellToConflict.put(c.getCell(), c); cellToTs.put(c.getCell(), c.getTheirStart() + 1); CellConflict.getCellFunction()); transactionOutcomeMetrics.markWriteWriteConflict(table); throw TransactionConflictException.create(table,
Map<Cell, Long> cellToTs = Maps.newHashMap(); for (CellConflict c : Sets.union(spanningWrites, dominatingWrites)) { cellToConflict.put(c.getCell(), c); cellToTs.put(c.getCell(), c.getTheirStart() + 1); CellConflict.getCellFunction()); transactionOutcomeMetrics.markWriteWriteConflict(table); throw TransactionConflictException.create(table,
public static CellConflict createConflictWithMetadata(KeyValueService kv, TableReference tableRef, Cell cell, long theirStartTs, long theirCommitTs) { TableMetadata metadata = KeyValueServices.getTableMetadataSafe(kv, tableRef); return new CellConflict(cell, getHumanReadableCellName(metadata, cell), theirStartTs, theirCommitTs); }
public static CellConflict createConflictWithMetadata(KeyValueService kv, TableReference tableRef, Cell cell, long theirStartTs, long theirCommitTs) { TableMetadata metadata = KeyValueServices.getTableMetadataSafe(kv, tableRef); return new CellConflict(cell, getHumanReadableCellName(metadata, cell), theirStartTs, theirCommitTs); }