H-A-180: judge a restore point's hold again at the start and on placement changes
A module held because the recovery module could not be asked kept that hold across the engine's start as if it waited for the operator's answer, while its have carried a wait, so the assigner never raised that ask: the hold was for good (the indexer on the control-node). The engine now judges such a hold again at its start and at every change of the placements: with no holder of mesh-recovery placed it moves the module without a point (H-A-177), with one placed it asks the point once more. A point a holder answered and failed is held as a failed backup, with no wait, so the assigner raises the operator's ask (back up again or skip); an older hold of that kind written with a wait is written again without one at the start. Builds: design 47 H-A-180, H-A-177, ADR 0568 §4, G-14 (a snapshot-kept that ends failed holds as a failed backup), A-453
This commit is contained in:
@@ -702,7 +702,13 @@ func nodeAgent(ctx context.Context, opts options, signer ed25519.PublicKey, trus
|
||||
composer := selfComposer(session, node, hooks, say)
|
||||
composer.AlsoEntryAgain = shadow.EntryAgain
|
||||
composer.AlsoEntriesAskAgain = shadow.EntriesAskAgain
|
||||
composer.OnEngine = session.Own.Set // the first composing names the engine's own module on a first start (§527, §634)
|
||||
composer.OnEngine = session.Own.Set // the first composing names the engine's own module on a first start (§527, §634)
|
||||
// A change of the placements judges again a module held because the recovery module could not be asked (design 47 H, H-A-180).
|
||||
composer.OnPlacements = func() {
|
||||
if now := own.get(); now != nil {
|
||||
now.PlacementsChanged()
|
||||
}
|
||||
}
|
||||
machinesNow.Store(composer) // the machines a failing network part points at, by the assignments (issue 774)
|
||||
composerNow.Store(composer) // what the verb compose asks a pass of, this run's alone
|
||||
session.SetManifestOf(composer.ManifestOf) // the event running names the manifest of the build that runs
|
||||
|
||||
Reference in New Issue
Block a user