- Notifications
You must be signed in to change notification settings - Fork928
Commit04991f4
authored
fix: set node callback each time we reinit the coordinator in servertailnet (#12140)
I think this willresolve#12136 but lets get a proper test at the system level before closing.Before this change, we only register the node callback at start of day for the server tailnet. If the coordinator changes, like we know happens when we are licensed for the PGCoordinator, we close the connection to the old coord, and open a new one to the new coord.The callback is designed to direct the updates to the new coordinator, but there is nothing that specifically triggers it to fire after we connect to the new coordinator.If we have STUN, then period re-STUNs will generally get it to fire eventually, but without STUN it we could go indefinitely without a callback.This PR changes the servertailnet to re-register the callback each time we reconnect to the coordinator. Registering a callback (even if it's the same callback) triggers an immediate call with our node information, so the new coordinator will have it.1 parent5a0d240 commit04991f4
2 files changed
+19
-22
lines changedLines changed: 17 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
136 | 136 |
| |
137 | 137 |
| |
138 | 138 |
| |
139 |
| - | |
140 |
| - | |
141 |
| - | |
142 |
| - | |
143 |
| - | |
144 |
| - | |
145 |
| - | |
146 |
| - | |
147 |
| - | |
148 |
| - | |
149 |
| - | |
150 |
| - | |
151 |
| - | |
152 |
| - | |
153 |
| - | |
154 |
| - | |
155 |
| - | |
156 |
| - | |
157 |
| - | |
158 |
| - | |
159 |
| - | |
160 |
| - | |
| 139 | + | |
| 140 | + | |
161 | 141 |
| |
162 | 142 |
| |
163 | 143 |
| |
| |||
183 | 163 |
| |
184 | 164 |
| |
185 | 165 |
| |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
186 | 178 |
| |
187 | 179 |
| |
188 | 180 |
| |
| |||
285 | 277 |
| |
286 | 278 |
| |
287 | 279 |
| |
| 280 | + | |
| 281 | + | |
| 282 | + | |
288 | 283 |
| |
289 | 284 |
| |
290 | 285 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
| 51 | + | |
51 | 52 |
| |
52 | 53 |
| |
53 | 54 |
| |
| |||
57 | 58 |
| |
58 | 59 |
| |
59 | 60 |
| |
| 61 | + | |
60 | 62 |
| |
61 | 63 |
| |
62 | 64 |
| |
|
0 commit comments
Comments
(0)