Commit 9a0e186
fix(fencing): allow fencing when WAL disk is full (cloudnative-pg#10302)
Move the WAL disk space check from the instance manager startup path
into the PostgreSQL lifecycle loop, after the fencing check. This
ensures the controller-runtime manager always starts, allowing fencing
annotations to be processed even when WAL disk is full.
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
(cherry picked from commit f6d03dd)
(cherry picked from commit 72998cf)1 parent 037f556 commit 9a0e186
File tree
3 files changed
+22
-16
lines changed- internal/cmd/manager/instance/run
- lifecycle
- pkg/management/postgres
3 files changed
+22
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | 71 | | |
76 | 72 | | |
77 | 73 | | |
| |||
127 | 123 | | |
128 | 124 | | |
129 | 125 | | |
130 | | - | |
| 126 | + | |
131 | 127 | | |
132 | 128 | | |
133 | 129 | | |
| |||
180 | 176 | | |
181 | 177 | | |
182 | 178 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | 179 | | |
193 | 180 | | |
194 | 181 | | |
| |||
409 | 396 | | |
410 | 397 | | |
411 | 398 | | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
412 | 407 | | |
413 | 408 | | |
414 | 409 | | |
415 | 410 | | |
416 | | - | |
| 411 | + | |
417 | 412 | | |
418 | 413 | | |
419 | 414 | | |
420 | 415 | | |
421 | | - | |
| 416 | + | |
422 | 417 | | |
423 | 418 | | |
424 | 419 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
93 | 100 | | |
94 | 101 | | |
95 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
136 | 140 | | |
137 | 141 | | |
138 | 142 | | |
| |||
0 commit comments