diff options
| author | tv <tv@krebsco.de> | 2026-11-20 04:16:12 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-20 05:29:48 +0100 |
| commit | 7926a9764626878f5cc244286cce9eb502358929 (patch) | |
| tree | 7ba6082872afd464490feb296c4f54afbc5c80a9 /CHANGELOG.md | |
| parent | 00cac6466057c2a8a92dae9e4cd46369e72bcad9 (diff) | |
keep-actor by default: the writer kept across a clean stop, writes held till a sync
A node that stopped cleanly writes on as the writer of before, as
`--keep-actor` had it, now by default: an epoch gathers a writer per node
and per crash, drop or rejoin, not per start. `keep-actor = false`, in a
configuration file, has a node write as a fresh writer each start; a
node without a document file has nothing to keep, which is no longer an
error.
Writing on as the writer of before, a node holds its writes (`mutate_doc`
and the API's through it) until it synced once with a ready neighbour,
level with it, or 10 seconds passed (`AppState::hold_writes`,
`KEPT_WRITER_WAIT`): a neighbour holding later changes of that writer,
which a copy of the node's files made (a backup restored, a disk rolled
back), hands them over first, and the node takes a fresh writer then, as
it did. A node that reaches no neighbour within the wait writes on.
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index f495fb7..b70d7bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ it from the release before ([`docs/operations.md`](docs/operations.md), ## Unreleased +* A node that stopped cleanly writes on as the writer of before (`--keep-actor`, on by + default; `keep-actor = false` in a configuration file turns it off), holding its + writes until it synced once with a ready neighbour, or 10 seconds passed, so that a + neighbour holding a copy's later changes of that writer hands them over first; a node + without a document file has nothing to keep, and no longer an error for it + ([`docs/lifecycle.md`](docs/lifecycle.md); [`src/state/mod.rs`](src/state/mod.rs), + [`src/lib.rs`](src/lib.rs)). + * Over Mycelium, a node waits in its daemon for what comes in only while it asks nothing else of it, as the daemon holds back every other request while one waits: an idle node sends at once, and two idle nodes reach each other. The daemon's API errors name their |
