Skip to content

SegmentSearcher times out on lock contention#7755

Merged
agourlay merged 1 commit intodevfrom
segment-search-locks-timeout
Dec 17, 2025
Merged

SegmentSearcher times out on lock contention#7755
agourlay merged 1 commit intodevfrom
segment-search-locks-timeout

Conversation

@agourlay
Copy link
Member

@agourlay agourlay commented Dec 12, 2025

This PR adds timeout on the acquisition of the locks for segment_holder and individual segments for search operations.

@agourlay agourlay added this to the Better read timeouts milestone Dec 12, 2025
@agourlay agourlay force-pushed the segment-search-locks-timeout branch 2 times, most recently from b002599 to db2cb0a Compare December 15, 2025 16:55
@agourlay agourlay force-pushed the segment-search-locks-timeout branch from db2cb0a to 19f42aa Compare December 17, 2025 11:25
segment_query_context,
)?;

drop(read_segment);
Copy link
Member Author

Choose a reason for hiding this comment

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

small optimization as the read segment is not necessary to process the further results

@agourlay agourlay marked this pull request as ready for review December 17, 2025 11:40
@agourlay agourlay requested a review from timvisee December 17, 2025 11:40
coderabbitai[bot]

This comment was marked as resolved.

@qdrant qdrant deleted a comment from coderabbitai bot Dec 17, 2025
@agourlay
Copy link
Member Author

As discussed internally, I will follow up with a refactoring PR to use https://lskatz.github.io/fasten/parking_lot/struct.RwLock.html#method.try_read_until where possible to improve the tracking of the deadline during processing.

@agourlay agourlay merged commit 788f5e7 into dev Dec 17, 2025
15 checks passed
@agourlay agourlay deleted the segment-search-locks-timeout branch December 17, 2025 15:54
@timvisee timvisee mentioned this pull request Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants