Skip to content

Follow-up from #692: a Shutdown that races Start*Context before the callsBefore load can run OnShutdown hooks twice #728

Description

@FumingPower3925

Follow-up from PR #692 (#673), left open under the maintainer's two-round review cap (2026-09-27). The round-2 independent review of #692 approved with no blocker or major. Its minors were handled before the merge: docs#73 rewrites graceful-shutdown.md, #692 carries the breaking label, and CodeRabbit reviewed 5a05c2e with no actionable comments. One nit is left, and it is tracked here.

A narrow window can still run the OnShutdown hooks twice.

What to do: either close the window (for example, take the snapshot under the same publication step that sets the engine), or add one sentence to the comment at server.go:865-869 that names the window and why the load sits where it does. The #703 lane edits the same function (it reuses #692's listen/watcher join), so it can pick this up.

Found by: the lane E round-2 review of #692 (nit), evidence root evidence/celeris-673-679-653-424/lane-20260926/673/.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/apiPublic-facing API surfacebugSomething isn't working

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions