Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#23925] DocDB: Address recent regression of test PgWaitQueuesTest.Mu…
…ltiTabletFairness Summary: `PgWaitQueuesTest.MultiTabletFairness` has some timing based assertions that started to fail recently. In particular, each thread issues a `select for update...` and waits for all other threads to reach the same state. It seems like enabling shared memory in release mode has caused the flakiness in this test (only on mac release builds), which may be hints at `select for update...` taking longer after the change. But a potential regression affecting latencies due to that change is being looked at separately and it shouldn't have anything to do with this test. here's a snippet of the error we see on mac release builds. ``` ../../src/yb/yql/pgwrapper/pg_wait_on_conflict-test.cc:1317 Value of: queued_waiters.WaitFor(10s * kTimeMultiplier) Actual: false Expected: true ``` This diff addresses the test only issue by executing all reads with explicit lock requests before the for loop with timing based assertions. Jira: DB-12827 Test Plan: ./yb_build.sh release --cxx-test pgwrapper_pg_wait_on_conflict-test --gtest_filter PgWaitQueuesTest.MultiTabletFairness -n 50 --tp 1 Reviewers: rthallam, pjain, patnaik.balivada Reviewed By: patnaik.balivada Subscribers: ybase, yql Differential Revision: https://phorge.dev.yugabyte.com/D38050
- Loading branch information