Repository navigation
Fix race in MergeTreeIndexVectorSimilarity - #73517
Merged
Merged
Conversation
Contributor
|
This is an automated comment for commit 77a7f33 with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page
Successful checks
|
| @@ -295,16 +296,9 @@ void updateImpl(const ColumnArray * column_array, const ColumnArray::Offsets & c | |||
| /// indexes are build simultaneously (e.g. multiple merges run at the same time). | |||
| auto & thread_pool = Context::getGlobalContextInstance()->getBuildVectorSimilarityIndexThreadPool(); | |||
Member
There was a problem hiding this comment.
Let's move this pool to the SharedThreadPools.h for the sake of uniformity.
Member
There was a problem hiding this comment.
Good idea but I'll do this separately. We'll need to backport Antonio's fix, let 's keep the PR small.
Member
There was a problem hiding this comment.
Hmm,
- SharedThreadPool.h is in
src/IO/and it only contains IO-related thread pools, - the non-IO related thread pools (including the one for vector similarity indexes) are in
Context.h/cpp.
@nikitamikhaylov Should we actually move SharedThreadPool to src/Common/ + move all thread pools from Context to SharedThreadPool?
rschu1ze
approved these changes
Dec 18, 2024
This was referenced Dec 18, 2024
robot-clickhouse
added a commit
that referenced
this pull request
Dec 18, 2024
robot-clickhouse
added a commit
that referenced
this pull request
Dec 18, 2024
robot-clickhouse
added a commit
that referenced
this pull request
Dec 18, 2024
robot-clickhouse
added a commit
that referenced
this pull request
Dec 18, 2024
robot-ch-test-poll
added a commit
that referenced
this pull request
Dec 18, 2024
Backport #73517 to 24.12: Fix race in `MergeTreeIndexVectorSimilarity`
rschu1ze
added a commit
that referenced
this pull request
Dec 18, 2024
Backport #73517 to 24.11: Fix race in `MergeTreeIndexVectorSimilarity`
antonio2368
added a commit
that referenced
this pull request
Dec 19, 2024
Backport #73517 to 24.10: Fix race in `MergeTreeIndexVectorSimilarity`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix data race when creating vector similarity index.
https://s3.amazonaws.com/clickhouse-test-reports/0/f21bf70030a3d5b44ad8560143ac4a6ac7de65f6/stress_test__azure__tsan_.html
cc @rschu1ze I'm not 100% sure but it makes sense based on tsan output.
Documentation entry for user-facing changes
CI Settings (Only check the boxes if you know what you are doing):