From c98e92afae3650bd14bbe070d31a3cfe4790c92c Mon Sep 17 00:00:00 2001 From: jochen Date: Fri, 27 Nov 2026 04:14:42 +0100 Subject: [PATCH] Finding 4 (follow-up): an open run's waits are said again after its readers are taken up, so the say does not delay the take-up MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Builds: design 47 H2b §832 4.; H-A-873 --- .../cmd/mesh-delivery-assigner/compositionbounds.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/compositionbounds.go b/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/compositionbounds.go index bbfa3b53e..a368f123d 100644 --- a/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/compositionbounds.go +++ b/modules/mesh-delivery-assigner/cmd/mesh-delivery-assigner/compositionbounds.go @@ -439,7 +439,6 @@ func ackOrNak(m jetstream.Msg, err error, logf func(string, ...any)) { // takeUp says, at the assigner's start, the end of each reader of a run with no `ended` once its runs end (§719, A-468): the // step's goroutine is gone, so its end is judged from the candidate's keys naming it. func (c *compositionSteps) takeUp(ctx context.Context, r *compositionRuns) { - r.sayWaitsAgain() readers, err := r.readersOfOpen() if err != nil { c.logf("composition-runs: the runs standing at the start are not read, so their readers are not taken up: %v", err) @@ -458,4 +457,6 @@ func (c *compositionSteps) takeUp(ctx context.Context, r *compositionRuns) { } go c.say1(ctx, reader.ID, stepRunOf(reader.CompositionReader), how, again) } + // the waits of the open runs are said again once the readers are taken up: the runs' ends race the take-up, and a say must not delay it + r.sayWaitsAgain() }