Repository navigation
Commit 04cc5a9
fix(bootstrap): set up metrics-exporter role in a separate transaction (#10749)
The bootstrap step on the primary used to run `streaming_replica`
creation, pg_rewind grants, and `SetupMetricsExporterRole` in a single
transaction. A failure during metrics-exporter setup (commonly a
duplicate-key race with the controller reconciler) rolled the whole
thing back, dropping `streaming_replica` and wedging replica joins until
pod restart.
Split the bootstrap into two transactions so the metrics-exporter step
can fail in isolation without touching the replication setup.
Closes #10748
Signed-off-by: Blaise Antony <[email protected]>
Signed-off-by: Armando Ruocco <[email protected]>
Co-authored-by: Armando Ruocco <[email protected]>1 parent 6b885c8 commit 04cc5a9
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
182 | 181 | | |
183 | 182 | | |
184 | 183 | | |
| |||
194 | 193 | | |
195 | 194 | | |
196 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
197 | 209 | | |
198 | 210 | | |
199 | 211 | | |
| |||
0 commit comments