Skip to content

2.31.0.0-b166

@spolitov spolitov tagged this 15 Jun 12:29
Summary:
The test repeatedly issues CREATE TABLE in db1 while a cron job runs drop_all_tables() in the same database every second.
Both statements bump the per-DB catalog version, so the CREATE TABLE can lose a race on the catalog-version row and surface a serialization failure (pgsql error 40001) to its caller.
On tsan the wider timing makes this race far more likely, producing the flakiness.
The retry path already handled "could not serialize access due to concurrent update", but the same 40001 race can also surface as "Restart read required".
Retry on that message as well so the transient conflict is absorbed instead of failing the test.

Test Plan: bin/remote_build.py tsan --gtest_filter PgCronTest.JobOnDifferentDB -n 8 -- -p 4

Reviewers: hsunder

Reviewed By: hsunder

Subscribers: ybase

Differential Revision: https://phorge.dev.yugabyte.com/D54543
Assets 2
Loading