Skip to content

Replace event watchers when a node endpoint generation changes - #309

Merged
athNdev merged 3 commits into
feat/node-daemon-identityfrom
feat/watcher-generations
Nov 4, 2026
Merged

athNdev merged 3 commits into
feat/node-daemon-identityfrom
feat/watcher-generations

Conversation

@athNdev

@athNdev athNdev commented Oct 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • A watched node whose endpoint generation changes gets a new event watcher, so the stream does not keep the client from the previous endpoint.
  • A node whose Docker client cannot be resolved is listed as stale and does not stop the other nodes. Removing it from the watched set clears that stale mark.
  • A full merged event buffer drops the event instead of stalling that node's stream.

Depends on the node endpoint generation in #308. This branch is based on feat/node-daemon-identity.

Test plan

  • go test ./internal/reconciler/ -count=1 -p 1 -run "TestWatchMembershipReplacesNodes|TestSyncGenerationsReplacesTheWatcher|TestUnresolvedNodeIsStaleAndDoesNotBlockAnotherNode|TestFullEventBufferDoesNotStallTheWatcher|TestSupervisorSyncAddsAndDropsNodes"
  • go run ./cmd/knowledge-lint -root .
  • CI on the pull request

athNdev and others added 3 commits October 28, 2026 21:42
…and keep an unresolved node visible as stale.

Co-authored-by: Cursor <[email protected]>
…proxy route, or log subscriptions stuck.

Co-authored-by: Cursor <[email protected]>
…aced daemon is not watched on the old client.

Co-authored-by: Cursor <[email protected]>
@athNdev
athNdev merged commit 63382ec into feat/node-daemon-identity Nov 4, 2026
10 checks passed
@athNdev
athNdev deleted the feat/watcher-generations branch November 4, 2026 00:02
athNdev added a commit that referenced this pull request Nov 4, 2026
* Drop a cached Docker client when that node's host or TLS material changes, so later calls are not sent to the previous daemon.

Co-authored-by: Cursor <[email protected]>

* Record the node endpoint generation on each lifecycle operation so a later host change is not treated as the same daemon.

Co-authored-by: Cursor <[email protected]>

* Remember the Docker daemon id a node first reports, and refuse a later ping that presents a different daemon.

Co-authored-by: Cursor <[email protected]>

* Refuse to answer a named Docker node with the local daemon, even when the historical fallback flag is set.

Co-authored-by: Cursor <[email protected]>

* Check operation-list write errors so a failed stdout does not look like an empty journal.

Co-authored-by: Cursor <[email protected]>

* Replace event watchers when a node endpoint generation changes (#309)

* Replace a node's event watcher when its endpoint generation changes, and keep an unresolved node visible as stale.

Co-authored-by: Cursor <[email protected]>

* Prove a dropped or reordered Docker event does not leave status, the proxy route, or log subscriptions stuck.

Co-authored-by: Cursor <[email protected]>

* Refresh event watchers from each node's endpoint generation so a replaced daemon is not watched on the old client.

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>

---------

Co-authored-by: Cursor <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant