You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parent: #2410 (SI-22 sub-issue 4 of 4; part of #1488).
Goal
On shutdown, listener components are cancelled only after every component that publishes to their buses has completed, or the shared deadline has expired. The application and the HTTP and UDP test environments follow this order, and the ADR and diagrams describe the final design.
Acceptance criteria
AC1 (sub-EPIC AC2): no listener component is cancelled before every event-producing component has completed or the shared deadline has expired.
AC2 (sub-EPIC AC5): the HTTP and UDP test environments stop producers before listeners.
AC3 (sub-EPIC AC7): the T0 scenarios, rerun after the fix, show every control completion persisted within budgets. Race evidence records counts and observed lag, leftovers, failures, and aborts; an unexplained deficit blocks acceptance. An abort may leave an in-progress outcome unknown, which cannot be counted using receiver length.
AC4 (sub-EPIC AC8): the ADR is in docs/adrs/, restates every still-valid point of the cancellation-tree ADR, and that ADR is marked Superseded by it.
AC5 (sub-EPIC AC10): the five diagrams describe the final implementation and live under docs/architecture/; the shutdown diagrams they replace are updated or removed.
AC6 (sub-EPIC AC13): EventFlows rejects a consumer registered after a producer of its bus (unit test). Bootstrap proves subscription before publication and retains bus ownership through listener join; individual sender clones may drop. The ADR states these rules and the drain rule, including shared-deadline abort exceptions verified by T8 (AC12).
linter all exits with code 0; relevant tests pass.
Specification: docs/issues/open/2416-2410-si-22-4-stop-producers-before-listeners/ISSUE.md (added by the spec-only PR).
Activity
docs(issues): add specs for SI-22 shutdown event draining and related…
Merge #2421: docs(issues): add specs for SI-22 shutdown event drainin…
docs(issues): refresh SI-22 specs with lessons from SI-17
docs(issues): refresh SI-22 specs with lessons from SI-17
docs(issues): refresh SI-22 specs with lessons from SI-17
Merge #2483: docs(issues): add the #2471 spec and refresh the SI-22, …
docs(issues): [#2410] refresh stale SI-22 spec text before #2414
Merge #2569: docs(issues): close the #2413 delivery gates and refresh…
Merge #2578: fix(events): [#2414] drain listener queues on shutdown
Merge #2591: refactor(bootstrap): [#2415] give each application compo…
docs(issues): [torrust#2482] coordinate the environment moves with to…
Merge #2614: docs(issues): [#2482] refresh the test-support sub-EPIC …
36 remaining items
docs(adrs): [#2416] promote the shutdown-order ADR and supersede the …
docs(architecture): [#2416] document the stop order, move the diagram…
docs(shutdown): [#2416] record the manual verification and the accept…
docs(shutdown): [#2416] record the independent review and the impleme…
docs(skills): [#2416] document drafting an ADR in an issue folder in …
docs(shutdown): [#2416] record the checkpoint (c) decisions in both p…
chore(issues): [#2416] archive the closed issue #2416 spec to docs/is…
Merge #2632: chore(issues): archive closed issue #2416 spec to docs/i…
Merge torrust#2623: fix(bootstrap): [torrust#2416] stop event produce…
chore(issues): [#2410] close sub-EPIC SI-22 and archive its spec to d…
Merge #2633: chore(issues): [#2410] close sub-EPIC SI-22 and archive …
docs(issues): [#2449] refresh the SI-23 and SI-24 specs after SI-22
Merge #2635: docs(issues): [#2449] refresh the SI-23 and SI-24 specs …
Merge #2700: docs(issues): [#2699] specify gating the udp-server test…