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:
@@ -172,6 +172,9 @@ type Composer struct {
|
||||
// OnEngine is told the node-engine's own module each time a composing finds it (design 47 G §527, §634); set before the
|
||||
// composer runs.
|
||||
OnEngine func(module string)
|
||||
// OnPlacements is told each change of a node's assignment the composer takes in, so the agent judges again a module held
|
||||
// because the recovery module could not be asked (design 47 H, H-A-180); set before Watch, nil tells nothing.
|
||||
OnPlacements func()
|
||||
// AlsoEntryAgain is told each entry asked again by hand, so the shadow's own cache of entries asks it again too.
|
||||
AlsoEntryAgain func(ctx context.Context, fp string)
|
||||
// AlsoEntriesAskAgain is told each catalog-revision the composer hears, so the shadow, which hears nothing itself, asks its
|
||||
@@ -904,6 +907,9 @@ func (c *Composer) takeAssignments(u agent.Update) {
|
||||
if node != "" && err != nil && c.env.Say != nil {
|
||||
c.env.Say("the seat's assignment of " + node + ": " + err.Error())
|
||||
}
|
||||
if node != "" && c.OnPlacements != nil {
|
||||
c.OnPlacements()
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Composer) takeRecord(u agent.Update) {
|
||||
|
||||
Reference in New Issue
Block a user