Skip to content

id_tracker filters out points without version to honor flushing sequence - #5866

Merged
agourlay merged 1 commit into
devfrom
fix-missing-version
Jan 24, 2025
Merged

agourlay merged 1 commit into
devfrom
fix-missing-version

Conversation

@agourlay

@agourlay agourlay commented Jan 23, 2025 •

Copy link
Copy Markdown
Member

A point without a version did not go through the full flushing sequence because the version is flushed last.

An incomplete point should not be visible when merging points from the different segments.

The current behavior creates false positive for the data consistency check, where points without vectors get a synthetic version Some(0) generated.

Example of broken storage created by crasher

025-01-23T14:40:08.473815Z ERROR segment::segment::segment_ops: Vector storage 'sparse-vector-float16-1' is missing point Some(NumId(750)) point_offset: 1600 version: Some(0)    
2025-01-23T14:40:08.473900Z ERROR segment::segment::segment_ops: Vector storage 'sparse-vector-float16-2' is missing point Some(NumId(750)) point_offset: 1600 version: Some(0)    
2025-01-23T14:40:08.473911Z ERROR segment::segment::segment_ops: Vector storage 'sparse-vector-index-memory-2' is missing point Some(NumId(750)) point_offset: 1600 version: Some(0)    
2025-01-23T14:40:08.473936Z ERROR segment::segment::segment_ops: Vector storage 'sparse-vector-float16-1' is missing point Some(NumId(740)) point_offset: 1601 version: Some(0)    
2025-01-23T14:40:08.473947Z ERROR segment::segment::segment_ops: Vector storage 'sparse-vector-float16-2' is missing point Some(NumId(740)) point_offset: 1601 version: Some(0)

@agourlay
agourlay marked this pull request as ready for review January 23, 2025 14:41
@agourlay
agourlay requested a review from timvisee January 23, 2025 14:51
@agourlay agourlay changed the title Filter out points without version to honor flushing sequence id_tracker filters out points without version to honor flushing sequence Jan 24, 2025

@timvisee timvisee left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do think this change is correct.

I'm still wondering though if there's any possible side effect introduced by this. I suggest to keep an eye on chaos testing to see if behavior changes there.

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.

3 participants