- Notifications
You must be signed in to change notification settings - Fork5
Commit36c1c91
committed
Make regression test for multiple synchronous standbys more stable.
The regression test checks whether the output of pg_stat_replication isexpected or not after changing synchronous_standby_names and reloadingthe configuration file. Regarding this test logic, previously there wasa timing issue which made the test result unstable. That is,pg_stat_replication could return unexpected result during small windowafter the configuration file was reloaded before new setting valuetook effect, and which made the test fail.This commit changes the test logic so that it uses a loop with a timeoutto give some room for the test to pass. Now the test fails only whenpg_stat_replication keeps returning unexpected result for 30 seconds.Michael Paquier1 parentf0e766b commit36c1c91
1 file changed
+17
-1
lines changedLines changed: 17 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
26 | 42 |
| |
27 | 43 |
| |
28 | 44 |
| |
|
0 commit comments
Comments
(0)