The assigner's state and verb placement are assignments, with its events, tools, views and every caller; the assigner copies the retired state at its start (issue 1966)
Claude-Session: https://claude.ai/code/session_01NcbgfFSnn24M3GcqttoU7i
This commit is contained in:
@@ -129,7 +129,7 @@ type Indexer struct {
|
||||
// capability read mesh-wide, waiting for every counted node-engine to state it. Nil, or Counted nil, holds nothing.
|
||||
Holds Store
|
||||
// Counted is what each counted node's engine states it reads (ADR 0624 §1; nil, the baseline, for a node with no
|
||||
// statement), and whether the counted nodes are known (the placement is read).
|
||||
// statement), and whether the counted nodes are known (the assignments is read).
|
||||
Counted func() (map[string][]string, bool)
|
||||
// AskEngines asks these nodes' engines what they read again (the node-engine seat's verb manifest-reads); nil asks none.
|
||||
AskEngines func(nodes []string, why string)
|
||||
|
||||
@@ -28,10 +28,10 @@ import (
|
||||
// it is written as its merge would have written it, judged and said. The assigner's hold of ADR 0614 §4 holds a want on
|
||||
// one node; this one holds the entry itself, which every node reads.
|
||||
//
|
||||
// "Counted" is ADR 0624 §1's set: every node the placement names, present or away, each read as its engine last stated
|
||||
// "Counted" is ADR 0624 §1's set: every node the assignments names, present or away, each read as its engine last stated
|
||||
// through the node-engine seat's verb manifest-reads (a node with no statement read as the baseline; the indexer's state
|
||||
// engine-reads, nodeengineclient/enginereads). Until the placement is read no node is counted and every hold stays. The hold moves
|
||||
// on the event manifest-reads-changed, the placement's change, a person's ask again, and a merge; never on a timer.
|
||||
// engine-reads, nodeengineclient/enginereads). Until the assignments is read no node is counted and every hold stays. The hold moves
|
||||
// on the event manifest-reads-changed, the assignments's change, a person's ask again, and a merge; never on a timer.
|
||||
const (
|
||||
// HoldsState is the indexer's state of held entries: the bucket mesh-delivery-indexer_holds, keyed as the modules state.
|
||||
HoldsState = "holds"
|
||||
@@ -126,7 +126,7 @@ func meshWide(needs []string) []string {
|
||||
}
|
||||
|
||||
// noneCounted is why a hold stays while no node is counted.
|
||||
const noneCounted = "no node is counted yet (the placement is not read), so the hold stays until it is"
|
||||
const noneCounted = "no node is counted yet (the assignments is not read), so the hold stays until it is"
|
||||
|
||||
// lacking is, of the counted nodes, each whose engine lacks some of needs, with what it lacks; or why no node is counted.
|
||||
func (ix *Indexer) lacking(needs []string) (map[string][]string, string) {
|
||||
@@ -232,7 +232,7 @@ func (ix *Indexer) dropHold(ctx context.Context, key, why string) error {
|
||||
}
|
||||
|
||||
// KickHolds moves every hold whose needs every counted node-engine now states, in the background, once at a time: on a
|
||||
// node's statement changed, the placement's change and the holds state's binding.
|
||||
// node's statement changed, the assignments's change and the holds state's binding.
|
||||
func (ix *Indexer) KickHolds(ctx context.Context) {
|
||||
if ix.Holds == nil || ix.Counted == nil {
|
||||
return
|
||||
|
||||
@@ -37,9 +37,9 @@ const (
|
||||
CheckerModule = "mesh-delivery-checker"
|
||||
BuildGoModule = "mesh-build-go"
|
||||
BuildNodeModule = "mesh-build-node"
|
||||
PlacementState = "placement"
|
||||
PlacementBucket = AssignerModule + "_" + PlacementState
|
||||
PlacementHistory = 5
|
||||
AssignmentsState = "assignments"
|
||||
AssignmentsBucket = AssignerModule + "_" + AssignmentsState
|
||||
AssignmentsHistory = 5
|
||||
SourceBucket = GateModule + "_source"
|
||||
PreviewsBucket = CheckerModule + "_previews"
|
||||
PreviewsHistory = 5
|
||||
|
||||
Reference in New Issue
Block a user