Skip to content

Safe bounds for point_to_tokens_count - #5845

Merged
coszio merged 1 commit into
devfrom
safe-bounds-for-point_to_tokens_count{
Jan 21, 2025
Merged

coszio merged 1 commit into
devfrom
safe-bounds-for-point_to_tokens_count{

Conversation

@coszio

@coszio coszio commented Jan 21, 2025

Copy link
Copy Markdown
Contributor

Another crasher failure fix:


2025-01-21T16:05:15.084473Z ERROR qdrant::startup: Panic occurred in file lib/segment/src/index/field_index/full_text_index/mmap_inverted_index/mod.rs at line 163: index out of bounds: the len is 1559 but the index is 1592

[...]

2025-01-21T16:05:15.887828Z ERROR qdrant::startup: Panic occurred in file /Users/luis/personal/Qdrant/qdrant/lib/collection/src/shards/replica_set/mod.rs at line 301: Failed to load local shard "./storage/collections/workload-crasher/0": Service internal error: Failed to join task that removes duplicate points from segment: task 33 panicked with message "index out of bounds: the len is 1559 but the index is 1592"

We missed to consider that the deleted_points bitslice can be bigger than point_to_tokens_count, so this panic was possible since we were accessing the index directly.

With these changes we now use get_mut instead, and decrease the active_points_count correctly.

@coszio
coszio requested review from agourlay and timvisee January 21, 2025 18:44

@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.

👍

timvisee pushed a commit that referenced this pull request Jan 23, 2025
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