Design 47 H2b: H-A-789, a whole-ledger repair is an act that says its progress and its end (issue 1984 note 71)
This commit is contained in:
@@ -1252,3 +1252,19 @@ mesh-delivery 3b1f03ce, mesh-tools 393449e, mesh-catalog 17e1bfb6 and mesh-sdk b
|
||||
not a plain count of section 10's table (its row 41 is the table's 57th row), so a builder cannot find a row by its
|
||||
number. Each row the H2b file cites carries its first words beside its number. Principle 8. How it is checked: the
|
||||
review finds each cited row by its words.
|
||||
- **H-A-789 (a whole-ledger repair is an act: it answers at once, says its progress and its end, and reads the history
|
||||
once, 22:48)** 26 Nov, met at H-A-692 (3)'s rebuild of the gate's ledger (issue 1984 note 71), the second time of the
|
||||
kind after ledger_lag timed out at the gate's start at 21:39 and 21:41 (fix-a-bug-met-twice). Read on mesh-tools main
|
||||
19f2fea: `Ledger.Rebuild` and `Ledger.Lag` read the whole history to list the instances, then make about four bus
|
||||
round trips per instance, with no progress line, no end and no `why`. Built in H2b (the tool runner's ledger, with
|
||||
mesh-sdk's `buscalls` forms): (1) `ledger_rebuild`, `ledger_snapshot`, `ledger_reindex` and `ledger_lag` over a
|
||||
whole ledger answer `accepted` with an act id at once and run as an act, one at a time per ledger (`busy` naming the
|
||||
running act otherwise), as G §554 shapes the recovery module's verbs; (2) the act says a journal line every
|
||||
`repair-progress-every` instances (a setting, default 1000) and ends with the event `repair-ended` of the module,
|
||||
naming the act, the ledger, and the instances written, skipped and refused (lag: those behind), so a person and a
|
||||
watcher hear the end; (3) every repair but `ledger_lag` takes a `why`, written in the hand-act log before it runs;
|
||||
(4) the act reads the history once, in order, and folds each operation into its instance, instead of one read per
|
||||
instance. A call for one instance stays a call that answers its result. Principles 3, 4 and 11; ADR 0597 §8, §10. How
|
||||
it is checked: whole (tool runner): a rebuild of a ledger of 30000 instances answers within a second, says its
|
||||
progress, and its `repair-ended` names the counts; a second rebuild while one runs answers `busy`; unit: a repair
|
||||
without a why is refused.
|
||||
|
||||
Reference in New Issue
Block a user