Skip to content

Force flush when taking a snapshot to capture on-going batches#7342

Merged
agourlay merged 1 commit intodevfrom
fix-snapshot-force-flushing
Oct 2, 2025
Merged

Force flush when taking a snapshot to capture on-going batches#7342
agourlay merged 1 commit intodevfrom
fix-snapshot-force-flushing

Conversation

@agourlay
Copy link
Member

@agourlay agourlay commented Oct 2, 2025

Fixes #7335

The flush needs to be forced to avoid triggering the following optimization

(Some(version), Some(persisted_version)) => {
if !force && version == persisted_version {
// Segment is already flushed
return Ok(persisted_version);

The rational is that operations are split into smaller batches internally and the segment version is bumped with the first batch processed.

Having version == persisted_version does not ensure that other batches will be captured in storage as well.

@agourlay agourlay requested a review from generall October 2, 2025 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants