Commit 696f707
committed
⏺ fix(drain): reload pg config after sync standby removal
During scale-down, the operator removes draining standbys from
synchronous_standby_names via UpdateSynchronousStandbyList but
omits ReloadConfig, so ALTER SYSTEM SET writes to
postgresql.auto.conf without calling pg_reload_conf(). The
runtime config stays stale, causing a write stall when all
standbys disconnect.
- Set ReloadConfig: true on REMOVE request in
drain.go DrainStateRequested path
- Set ReloadConfig: true on REMOVE request in
drain.go DrainStateDraining verification path
Prevents sync replication write stall during scale-down by
ensuring runtime config reflects each standby removal.1 parent 63ec977 commit 696f707
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
| |||
203 | 204 | | |
204 | 205 | | |
205 | 206 | | |
206 | | - | |
207 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
208 | 210 | | |
209 | 211 | | |
210 | 212 | | |
| |||
0 commit comments