Fix random failure in 021_twophase.
authorAmit Kapila <akapila@postgresql.org>
Wed, 31 Jul 2024 03:23:55 +0000 (08:53 +0530)
committerAmit Kapila <akapila@postgresql.org>
Wed, 31 Jul 2024 03:23:55 +0000 (08:53 +0530)
commit0dcea330babd46402f6ca3ea3a552829c99bbe5e
treeeb4031df25238e878c377eda0262d6b87b72a3f5
parent679c5084cf210c6e958276b657039e8ba0c077c0
Fix random failure in 021_twophase.

After disabling the subscription, the failed test was changing the
two_phase option for the subscription. We can't change the two_phase
option for a subscription till the corresponding apply worker is active.
The check to ensure that the replication apply worker has exited was
incorrect.

Author: Vignesh C
Discussion: https://postgr.es/m/CALDaNm3YY+bzj+JWJbY+DsUgJ2mPk8OR1ttjVX2cywKr4BUgxw@mail.gmail.com
src/test/subscription/t/021_twophase.pl