diff options
author | Baptiste Jonglez <git@bitsofnetworks.org> | 2025-01-26 20:40:02 +0100 |
---|---|---|
committer | Baptiste Jonglez <git@bitsofnetworks.org> | 2025-01-27 19:33:57 +0100 |
commit | 6d798c640f523c0eb1653be9c7d89114a75b3fc3 (patch) | |
tree | 745a824c35c04344a034cded8c662d5f26b60f29 /src/garage/tests/k2v_client | |
parent | d4e3e609209eb52d820338daf628df7cf09881ab (diff) | |
download | garage-6d798c640f523c0eb1653be9c7d89114a75b3fc3.tar.gz garage-6d798c640f523c0eb1653be9c7d89114a75b3fc3.zip |
WIP: fix crash in layout computation when changing all nodes of a zone to gateway mode
This change is probably not a proper fix, somebody with more expertise on
this code should look at it.
Here is how to reproduce the crash:
- start with a layout with two zones
- move all nodes of a zone to gateway mode: `garage layout assign fea54bcc081f318 -g`
- `garage layout show` will panic with a backtrace
Fortunately, the crash is only on the RPC client side, not on the Garage
server itself, and `garage layout revert` still works to go back to the
previous state.
As far as I can tell, this bug is present since Garage 0.9.0 which
includes the new layout assignation algorithm:
https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/296
Diffstat (limited to 'src/garage/tests/k2v_client')
0 files changed, 0 insertions, 0 deletions