Commit 2c8a051
committed
fix(webapp): retry the distinct-database probe before failing closed
The probe fails closed, so one store being briefly unreachable collapsed the
deployment to single-DB and the boot interlock then refused the boot. With more
than two stores configured that turns a transient blip on any one of them into
a fleet-wide startup failure.
Each target now gets a bounded number of attempts with a short backoff before
the probe gives up. Failing closed is unchanged once the budget is exhausted:
"distinct" stays a positive claim a failed probe cannot support. A genuine
duplicate is a final answer and is never retried, so a misconfigured deployment
still fails on the first pass.
Retries are per target, so one slow store does not re-probe the stores that
already answered.1 parent 6973ca5 commit 2c8a051
2 files changed
Lines changed: 129 additions & 5 deletions
File tree
- apps/webapp
- app/v3/runOpsMigration
- test/v3/runOpsMigration
Lines changed: 56 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
67 | 109 | | |
68 | 110 | | |
69 | 111 | | |
| |||
77 | 119 | | |
78 | 120 | | |
79 | 121 | | |
80 | | - | |
| 122 | + | |
81 | 123 | | |
82 | 124 | | |
83 | 125 | | |
84 | 126 | | |
85 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
86 | 132 | | |
87 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
88 | 138 | | |
89 | 139 | | |
90 | 140 | | |
| |||
104 | 154 | | |
105 | 155 | | |
106 | 156 | | |
107 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
108 | 160 | | |
109 | 161 | | |
110 | 162 | | |
| |||
115 | 167 | | |
116 | 168 | | |
117 | 169 | | |
118 | | - | |
| 170 | + | |
119 | 171 | | |
120 | 172 | | |
121 | 173 | | |
| |||
Lines changed: 73 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
69 | 141 | | |
70 | 142 | | |
71 | 143 | | |
| |||
0 commit comments