pgsql: Fix the random test failure in 001_rep_changes.
От | Amit Kapila |
---|---|
Тема | pgsql: Fix the random test failure in 001_rep_changes. |
Дата | |
Msg-id | E1mLILV-0000G5-0N@gemulon.postgresql.org обсуждение исходный текст |
Список | pgsql-committers |
Fix the random test failure in 001_rep_changes. The check to test whether the subscription workers were restarting after a change in the subscription was failing. The reason was that the test was assuming the walsender started before it reaches the 'streaming' state and the walsender was exiting due to an error before that. Now, the walsender was erroring out before reaching the 'streaming' state because it tries to acquire the slot before the previous walsender has exited. In passing, improve the die messages so that it is easier to investigate the failures in the future if any. Reported-by: Michael Paquier, as per buildfarm Author: Ajin Cherian Reviewed-by: Masahiko Sawada, Amit Kapila Backpatch-through: 10, where this test was introduced Discussion: https://postgr.es/m/YRnhFxa9bo73wfpV@paquier.xyz Branch ------ REL_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/b7ad093d50e13aadfffb1662f53cd16a1c59e09d Modified Files -------------- src/test/subscription/t/001_rep_changes.pl | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-)
В списке pgsql-committers по дате отправления: