The noblob PR https://github.com/vitessio/vitess/pull/12905 has introduced a race during unit tests. This is caused by the re-initialization of globalDBQueries, which we do because we run all tests twice: once for the full image and once for noblob. It turns out that the post-copy vcopier task, which runs in a goroutine, is not scheduled sometimes till we do the reinitialization causing a race.
Overview of the Issue
The
noblob
PR https://github.com/vitessio/vitess/pull/12905 has introduced a race during unit tests. This is caused by the re-initialization ofglobalDBQueries
, which we do because we run all tests twice: once for thefull
image and once fornoblob
. It turns out that the post-copy vcopier task, which runs in a goroutine, is not scheduled sometimes till we do the reinitialization causing a race.https://github.com/vitessio/vitess/actions/runs/4989944133/jobs/8937133568
Reproduction Steps
-
Binary Version
Operating System and Environment details
Log Fragments