Closed kathia-barahona closed 1 year ago
Merging #580 (6afea46) into main (33b6e59) will decrease coverage by
0.03%
. The diff coverage isn/a
.:exclamation: Current head 6afea46 differs from pull request most recent head 1dfac7d. Consider uploading reports for the commit 1dfac7d to get more accurate results
About this change - What it does
Makes test wait for
pg_receivewal
to start streaming.Resolves: #BF-1609
Why this way
This change is mainly related on waiting for
pg_receivewal
process to be actually spawned. Noticed that we might ran into a race condition where the test generates the WAL files before the service actually starts streaming.That's why currently,
pg_receivewal
starts log streaming at0/2000000
instead of0/1000000
, which probably meanspg_receivewal
found a segmented file when initially scanning the WAL dir (this shouldn't happen since the test starts with an empty dir). Noticed that the test always fails when the streaming starts at0/3000000
, meaning that the latest segment was0/2000000
and it was not compressed, that's whyAssertionError: Expected at least 15 xlog uploads, got 14
is raised.