Commit 15df136
committed
fix(master): avoid rebalancing to disconnected CS
At the instant of looking for a server to replicate a part when
rebalancing, the current implementation uses the sortedServers_ or
labeledSortedServers_ variables. These containers may have stale
chunkserver entries that have been recently switched to KILL mode.
Those entries must not be used as a destination for the replicate
parts. These commit fixes that issue.
The test test_kill_cs_while_writing_small_files should stop being flaky
after the merge.
Signed-off-by: Dave <dave@leil.io>1 parent 5c742a6 commit 15df136
3 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2712 | 2712 | | |
2713 | 2713 | | |
2714 | 2714 | | |
| 2715 | + | |
| 2716 | + | |
2715 | 2717 | | |
2716 | 2718 | | |
2717 | 2719 | | |
| |||
2784 | 2786 | | |
2785 | 2787 | | |
2786 | 2788 | | |
| 2789 | + | |
| 2790 | + | |
2787 | 2791 | | |
2788 | 2792 | | |
2789 | 2793 | | |
| |||
2942 | 2946 | | |
2943 | 2947 | | |
2944 | 2948 | | |
2945 | | - | |
2946 | 2949 | | |
2947 | 2950 | | |
2948 | 2951 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1655 | 1655 | | |
1656 | 1656 | | |
1657 | 1657 | | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
1658 | 1662 | | |
1659 | 1663 | | |
1660 | 1664 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| |||
0 commit comments