Commit 4fc0479
authored
fix: avoid deleting peers on graceful close (coder#14165)
* fix: avoid deleting peers on graceful close
- Fixes an issue where a coordinator deletes all
its peers on shutdown. This can cause disconnects
whenever a coderd is redeployed.1 parent 6f1951e commit 4fc0479
13 files changed
Lines changed: 328 additions & 102 deletions
File tree
- coderd/database
- dbauthz
- dbmem
- dbmetrics
- dbmock
- dbtestutil
- queries
- enterprise/tailnet
- tailnet/test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3324 | 3324 | | |
3325 | 3325 | | |
3326 | 3326 | | |
| 3327 | + | |
| 3328 | + | |
| 3329 | + | |
| 3330 | + | |
| 3331 | + | |
| 3332 | + | |
| 3333 | + | |
3327 | 3334 | | |
3328 | 3335 | | |
3329 | 3336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2152 | 2152 | | |
2153 | 2153 | | |
2154 | 2154 | | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
2155 | 2160 | | |
2156 | 2161 | | |
2157 | 2162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7917 | 7917 | | |
7918 | 7918 | | |
7919 | 7919 | | |
| 7920 | + | |
| 7921 | + | |
| 7922 | + | |
| 7923 | + | |
7920 | 7924 | | |
7921 | 7925 | | |
7922 | 7926 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
62 | 69 | | |
63 | 70 | | |
64 | 71 | | |
| |||
92 | 99 | | |
93 | 100 | | |
94 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
95 | 105 | | |
96 | 106 | | |
97 | 107 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
152 | 160 | | |
153 | 161 | | |
154 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | 147 | | |
152 | 148 | | |
153 | 149 | | |
| |||
163 | 159 | | |
164 | 160 | | |
165 | 161 | | |
166 | | - | |
| 162 | + | |
167 | 163 | | |
168 | 164 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | 165 | | |
179 | 166 | | |
180 | 167 | | |
| |||
239 | 226 | | |
240 | 227 | | |
241 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
242 | 232 | | |
243 | 233 | | |
244 | 234 | | |
| |||
485 | 475 | | |
486 | 476 | | |
487 | 477 | | |
| 478 | + | |
488 | 479 | | |
489 | 480 | | |
490 | 481 | | |
| |||
502 | 493 | | |
503 | 494 | | |
504 | 495 | | |
| 496 | + | |
505 | 497 | | |
506 | 498 | | |
507 | 499 | | |
| |||
513 | 505 | | |
514 | 506 | | |
515 | 507 | | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
516 | 528 | | |
517 | 529 | | |
518 | 530 | | |
519 | 531 | | |
520 | 532 | | |
521 | 533 | | |
522 | 534 | | |
523 | | - | |
| 535 | + | |
524 | 536 | | |
525 | 537 | | |
526 | 538 | | |
| |||
632 | 644 | | |
633 | 645 | | |
634 | 646 | | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
635 | 651 | | |
636 | 652 | | |
637 | 653 | | |
| |||
1646 | 1662 | | |
1647 | 1663 | | |
1648 | 1664 | | |
1649 | | - | |
1650 | 1665 | | |
1651 | 1666 | | |
1652 | 1667 | | |
| |||
1677 | 1692 | | |
1678 | 1693 | | |
1679 | 1694 | | |
1680 | | - | |
1681 | | - | |
1682 | | - | |
1683 | | - | |
1684 | | - | |
1685 | | - | |
1686 | | - | |
1687 | | - | |
1688 | | - | |
1689 | | - | |
1690 | | - | |
1691 | 1695 | | |
1692 | 1696 | | |
1693 | 1697 | | |
| |||
0 commit comments