We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ed3d7c commit 0f5c959Copy full SHA for 0f5c959
rust/kafka-deduplicator/src/checkpoint_manager.rs
@@ -416,7 +416,8 @@ impl CheckpointManager {
416
counter_for_partition = *counter_guard.get(partition).unwrap_or(&0_u32);
417
}
418
419
- if counter_for_partition % full_checkpoint_interval == 0 {
+ // when full_checkpoint_interval is 0, we default to always performing Full checkpoints
420
+ if counter_for_partition.is_multiple_of(full_checkpoint_interval) {
421
CheckpointMode::Full
422
} else {
423
CheckpointMode::Incremental
0 commit comments