forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0a442a4

Amit Kapila
Fix 020_messages.pl test.
We were not waiting for a publisher to catch up with the subscriber aftercreating a subscription. Now, it can happen that apply worker startsreplication even after we have disabled the subscription in the test. Thiswill make the test expect that there is no active slot whereas thereexists one. Fix this symptom by allowing the publisher to wait forcatching up with the subscription.It is not a good idea to ensure if the slot is still active by checkingfor walsender existence as we release the slot after we clean up thewalsender related memory. Fix that by checking the slot status inpg_replication_slots.Also, it is better to avoid repeated enabling/disabling of thesubscription.Finally, we make autovacuum off for this test to avoid any emptytransaction appearing in the test while consuming changes.Reported-by: as per buildfarmAuthor: Vignesh CReviewed-by: Amit Kapila, Michael PaquierDiscussion:https://postgr.es/m/CAA4eK1+uW1UGDHDz-HWMHMen76mKP7NJebOTZN4uwbyMjaYVww@mail.gmail.com1 parent6a5bde7 commit0a442a4
1 file changed
+8
-23
lines changedLines changed: 8 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| 14 | + | |
| 15 | + | |
14 | 16 |
| |
15 | 17 |
| |
16 | 18 |
| |
| |||
35 | 37 |
| |
36 | 38 |
| |
37 | 39 |
| |
| 40 | + | |
| 41 | + | |
38 | 42 |
| |
39 | 43 |
| |
40 | 44 |
| |
41 |
| - | |
| 45 | + | |
42 | 46 |
| |
43 |
| - | |
| 47 | + | |
44 | 48 |
| |
45 | 49 |
| |
46 | 50 |
| |
| |||
77 | 81 |
| |
78 | 82 |
| |
79 | 83 |
| |
80 |
| - | |
| 84 | + | |
81 | 85 |
| |
82 | 86 |
| |
83 | 87 |
| |
| |||
88 | 92 |
| |
89 | 93 |
| |
90 | 94 |
| |
91 |
| - | |
92 |
| - | |
93 |
| - | |
94 |
| - | |
95 |
| - | |
96 |
| - | |
97 |
| - | |
98 |
| - | |
99 |
| - | |
100 |
| - | |
101 | 95 |
| |
102 | 96 |
| |
103 | 97 |
| |
| |||
109 | 103 |
| |
110 | 104 |
| |
111 | 105 |
| |
112 |
| - | |
| 106 | + | |
113 | 107 |
| |
114 | 108 |
| |
115 | 109 |
| |
| |||
118 | 112 |
| |
119 | 113 |
| |
120 | 114 |
| |
121 |
| - | |
122 |
| - | |
123 |
| - | |
124 |
| - | |
125 |
| - | |
126 |
| - | |
127 |
| - | |
128 |
| - | |
129 |
| - | |
130 | 115 |
| |
131 | 116 |
| |
132 | 117 |
| |
|
0 commit comments
Comments
(0)