-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#26119] DocDB: Fix tablet lock order while creating vector index
Summary: In master code we should acquire locks on tablets in the order of increasing ids. To guarantee that tablets are always locked in the same order to avoid lock order inversion. When vector index is created locks are acquired in the order of partitions. Fixed by using correct lock order. Jira: DB-15446 Test Plan: ./yb_build.sh tsan PgIndexBackfillTest.VectorIndex -n 40 Reviewers: zdrudi Reviewed By: zdrudi Subscribers: ybase, yql Tags: #jenkins-ready Differential Revision: https://phorge.dev.yugabyte.com/D42068
- Loading branch information
Showing
3 changed files
with
133 additions
and
91 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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