Skip to content

Use spawn_blocking for segment locking#8069

Merged
timvisee merged 3 commits intodevfrom
use_spawn_blocking_in_calc_local_shard_stats
Feb 9, 2026
Merged

Use spawn_blocking for segment locking#8069
timvisee merged 3 commits intodevfrom
use_spawn_blocking_in_calc_local_shard_stats

Conversation

@JojiiOfficial
Copy link
Contributor

@JojiiOfficial JojiiOfficial commented Feb 6, 2026

Follow up of #8056

Uses spawn_blocking for the potentially blocking segment.lock() operation which was discussed here #8056 (comment)

coderabbitai[bot]

This comment was marked as resolved.

Copy link
Member

@timvisee timvisee left a comment

Choose a reason for hiding this comment

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

I agree the extra error handling isn't beautiful. But we cannot silently ignore thread join errors. Thanks!

@qdrant qdrant deleted a comment from coderabbitai bot Feb 9, 2026
@timvisee timvisee merged commit 3b14965 into dev Feb 9, 2026
15 checks passed
@timvisee timvisee deleted the use_spawn_blocking_in_calc_local_shard_stats branch February 9, 2026 11:04
generall pushed a commit that referenced this pull request Feb 9, 2026
* Use spawn_blocking for segment locking

* Wrap blocking task in AbortOnDropHandle

* Use single blocking thread for fetching all segment size information

---------

Co-authored-by: timvisee <tim@visee.me>
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