-
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.
[#24294][YSQL] Fixing the test TestConcurrentOperations
Summary: In `yb_oid_entry.c`, the fields database_count and user_count are accessed by multiple threads during backend connect, or while creating a new pool. The mutation of the above fields need to be serialized when the above methods are called. The change here is to utilize read-write locks to manage the access of the above fields in a thread-safe manner and avoiding potential race conditions. The fix has been done in relation to the TestConcurrentOperations test failure in TestDropAndRenameRole and TestDropAndRenameDb Test Plan: Jenkins: enable connection manager, all tests This change would fix the tests `TestDropAndRenameRole#TestConcurrentOperations` and `TestDropAndRenameDb#TestConcurrentOperations` Reviewers: mkumar, rbarigidad, skumar, devansh.saxena, stiwary Reviewed By: devansh.saxena Subscribers: yql Differential Revision: https://phorge.dev.yugabyte.com/D41022
- Loading branch information
1 parent
ac7919c
commit 82ec53c
Showing
1 changed file
with
42 additions
and
10 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