Browse Source
fix SetState to persist state to disk with rollback on failure
fix SetState to persist state to disk with rollback on failure
Go's State.Update saves VolumeServerState to a state.pb file after each SetState call, and rolls back the in-memory state if persistence fails. Rust was only updating in-memory atomics, so maintenance mode would be lost on server restart. Now saves protobuf-encoded state.pb and loads it on startup.rust-volume-server
5 changed files with 68 additions and 4 deletions
-
20seaweed-volume/src/main.rs
-
48seaweed-volume/src/server/grpc_server.rs
-
1seaweed-volume/src/server/heartbeat.rs
-
2seaweed-volume/src/server/volume_server.rs
-
1seaweed-volume/src/server/write_queue.rs
Write
Preview
Loading…
Cancel
Save
Reference in new issue