Commit 430e632
authored
Improve tests stability around wait-until-pg-is-running. (#900)
In the GitHab Actions testing we see a lot of spurious errors around waiting
for Postgres to be running after creating a monitor node.
When diving in the logs, it seems like the configuration file for the
monitor is still being written and there is a race condition when the client
side command `pg_autoctl do pgsetup wait` tries to parse the pg_autoctl.cfg
file and when the server-side `pg_autoctl run` writes it to disk.
Here we just add a 2 seconds sleep before running the interactive command,
to see if that theory holds. Later, we might want to have a retry loop over
reading the configuration file in the `pg_autoctl do pgsetup ...` commands,
to better handle this race condition.1 parent d03138d commit 430e632
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1727 | 1727 | | |
1728 | 1728 | | |
1729 | 1729 | | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
1730 | 1734 | | |
1731 | 1735 | | |
1732 | 1736 | | |
| |||
0 commit comments