- Notifications
You must be signed in to change notification settings - Fork5
Commitb26f7fa
committed
Fix assorted problems in recovery tests
In test 001_stream_rep we're using pg_stat_replication.write_location todetermine catch-up status, but we care about xlog having been appliednot just received, so change that to apply_location.In test 003_recovery_targets, we query the database for a recoverytarget specification and later for the xlog position supposedlycorresponding to that recovery specification. If for whatever reasonmore WAL is written between the two queries, the recovery specificationis earlier than the xlog position used by the query in the test harness,so we wait forever, leading to test failures. Deal with this by using asingle query to extract both items. In2a0f89c we tried to dealwith it by giving them more tests to run, but in hindsight that wasobviously doomed to failure (no revert of that, though).Per hamster buildfarm failures.Author: Michaël Paquier1 parent69bdfc4 commitb26f7fa
File tree
2 files changed
+8
-9
lines changed- src/test/recovery/t
2 files changed
+8
-9
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
41 |
| - | |
| 41 | + | |
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
45 |
| - | |
| 45 | + | |
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
|
Lines changed: 6 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
73 | 72 |
| |
74 | 73 |
| |
75 | 74 |
| |
76 | 75 |
| |
77 |
| - | |
78 |
| - | |
79 |
| - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
80 | 79 |
| |
81 | 80 |
| |
82 | 81 |
| |
|
0 commit comments
Comments
(0)