| commit | 5b83c5278b9ecd4f04e75ac0ddb7fcb0cfb0f20a | [log] [tgz] |
|---|---|---|
| author | Lorenz Brun <lorenz@monogon.tech> | Tue Jan 14 16:12:38 2025 +0100 |
| committer | Lorenz Brun <lorenz@monogon.tech> | Thu Jan 16 12:38:32 2025 +0000 |
| tree | 364e0339c662ee9fb005d8072d58c8246a30a40b | |
| parent | 4beaf4fac641e77fd08b7b9a3139f7d27fddac72 [diff] |
m/n/c/curator: fix panic caused by race The starting/stopping of the respective follower/leader implementations is not synchronized with the state event source. Thus it can happen that requests get routed to an improper implementation. The follower correctly rejected requests when the current state indicated that it was a leader, but panic'ed if it was neither which is a valid state. Reject requests when it is not a follower, not just if it is a leader. Change-Id: I5cee85a44cb8a1ce1f4f28c49930abd1d14ac4e1 Reviewed-on: https://review.monogon.dev/c/monogon/+/3782 Reviewed-by: Jan Schär <jan@monogon.tech> Tested-by: Jenkins CI
This is the main repository containing the source code for the Monogon Platform.
This is pre-release software - take a look, and check back later! In the meantime, join us on Matrix (#monogon-os-community:matrix.org) or Discord.
Our build environment is self-contained and requires only minimal host dependencies:
/dev/kvm (if you want to run tests).Our docs assume that Bazelisk is available as bazel on your PATH.
Refer to SETUP.md for detailed instructions.
The source code lives in //metropolis (Metropolis is the codename of Monogon OS).
See the //metropolis/README.md for a developer quick start guide, or see the Monogon OS Handbook for user documentation.