private void cleanSweepableTimestamps(ShardAndStrategy shardStrategy, long oldProgress, long newProgress) { if (firstIterationOfSweep(oldProgress)) { return; } long lastSweptPartitionPreviously = SweepQueueUtils.tsPartitionCoarse(oldProgress); long minimumSweepPartitionNextIteration = SweepQueueUtils.tsPartitionCoarse(newProgress + 1); if (minimumSweepPartitionNextIteration > lastSweptPartitionPreviously) { sweepableTimestamps.deleteRow(shardStrategy, lastSweptPartitionPreviously); log.info("Deleted persisted sweep queue information in table {} for partition {}.", LoggingArgs.tableRef(TargetedSweepTableFactory.of() .getSweepableTimestampsTable(null).getTableRef()), SafeArg.of("partition", lastSweptPartitionPreviously)); } }
private void cleanSweepableTimestamps(ShardAndStrategy shardStrategy, long oldProgress, long newProgress) { if (firstIterationOfSweep(oldProgress)) { return; } long lastSweptPartitionPreviously = SweepQueueUtils.tsPartitionCoarse(oldProgress); long minimumSweepPartitionNextIteration = SweepQueueUtils.tsPartitionCoarse(newProgress + 1); if (minimumSweepPartitionNextIteration > lastSweptPartitionPreviously) { sweepableTimestamps.deleteRow(shardStrategy, lastSweptPartitionPreviously); log.info("Deleted persisted sweep queue information in table {} for partition {}.", LoggingArgs.tableRef(TargetedSweepTableFactory.of() .getSweepableTimestampsTable(null).getTableRef()), SafeArg.of("partition", lastSweptPartitionPreviously)); } }