pgsql: Fix race conditions in newly-added test.

2020-12-04 Thread Heikki Linnakangas
Fix race conditions in newly-added test. Buildfarm has been failing sporadically on the new test. I was able to reproduce this by adding a random 0-10 s delay in the walreceiver, just before it connects to the primary. There's a race condition where node_3 is promoted before it has fully caught u

pgsql: Fix race conditions in newly-added test.

2020-12-04 Thread Heikki Linnakangas
Fix race conditions in newly-added test. Buildfarm has been failing sporadically on the new test. I was able to reproduce this by adding a random 0-10 s delay in the walreceiver, just before it connects to the primary. There's a race condition where node_3 is promoted before it has fully caught u

pgsql: Fix race conditions in newly-added test.

2020-12-04 Thread Heikki Linnakangas
Fix race conditions in newly-added test. Buildfarm has been failing sporadically on the new test. I was able to reproduce this by adding a random 0-10 s delay in the walreceiver, just before it connects to the primary. There's a race condition where node_3 is promoted before it has fully caught u

pgsql: Fix race conditions in newly-added test.

2020-12-04 Thread Heikki Linnakangas
Fix race conditions in newly-added test. Buildfarm has been failing sporadically on the new test. I was able to reproduce this by adding a random 0-10 s delay in the walreceiver, just before it connects to the primary. There's a race condition where node_3 is promoted before it has fully caught u

pgsql: Fix race conditions in newly-added test.

2020-12-04 Thread Heikki Linnakangas
Fix race conditions in newly-added test. Buildfarm has been failing sporadically on the new test. I was able to reproduce this by adding a random 0-10 s delay in the walreceiver, just before it connects to the primary. There's a race condition where node_3 is promoted before it has fully caught u

pgsql: Fix race conditions in newly-added test.

2020-12-04 Thread Heikki Linnakangas
Fix race conditions in newly-added test. Buildfarm has been failing sporadically on the new test. I was able to reproduce this by adding a random 0-10 s delay in the walreceiver, just before it connects to the primary. There's a race condition where node_3 is promoted before it has fully caught u

pgsql: Fix race conditions in newly-added test.

2020-12-04 Thread Heikki Linnakangas
Fix race conditions in newly-added test. Buildfarm has been failing sporadically on the new test. I was able to reproduce this by adding a random 0-10 s delay in the walreceiver, just before it connects to the primary. There's a race condition where node_3 is promoted before it has fully caught u