feat(relay)!: construct the cluster origin once - #3582
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c6c46f0ebf
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
PR #3582 — feat(relay)!: construct the cluster origin once
SummaryFixes the hazard where
FindingsBlockers
Risks
Nits
CI
CI green on the branch tip does not override the conflict with current VerdictRequest changes — rebase onto |
c6c46f0 to
736c493
Compare
Put cache settings into ClusterOptions so the origin and node view are built once. Cluster::with_cache rebuilt the origin and detached any handle taken earlier. Co-Authored-By: grok-4.6 <noreply@x.ai>
The cluster-construction quest file is deleted when the origin is built once, so remaining links would fail the quest checker. Co-Authored-By: grok-4.6 <noreply@x.ai>
#3587 made stats.enabled a bool, so the construction-time cache test cannot wrap it in Some. Co-Authored-By: grok-4.6 <noreply@x.ai>
736c493 to
ac840c1
Compare
Summary
Cluster::newnow takesClusterOptions, so the origin is built once after identity and cache settings are known.Cluster::with_cache, which rebuilt the origin and silently detached previously cloned handles and stats publishers.--cluster-lingerstays a hidden config no-op and is not an origin construction option.Public API
Breaking:
Cluster::with_cache.Cluster::newnow takesClusterOptionsinstead ofClusterConfig.ClusterOptions(config,cache) withClusterOptions::newandClusterOptions::with_cache(sets the cache before construction; does not rebuild the origin).Cluster::with_client,with_client_tls, andwith_statsstill attach independent services without replacing the origin.Wire
None.
(written by grok-4.6)