Skip to content

fix(admin): fail closed for empty server context slots - #5452

Merged
overtrue merged 4 commits into
mainfrom
codex/backlog-1553-no-ambient-slot-fallback
Jul 29, 2026
Merged

fix(admin): fail closed for empty server context slots#5452
overtrue merged 4 commits into
mainfrom
codex/backlog-1553-no-ambient-slot-fallback

Conversation

@overtrue

Copy link
Copy Markdown
Collaborator

Related Issues

Fixes rustfs/backlog#1553

Summary of Changes

  • Resolve request-scoped runtime dependencies only from the owning server slot.
  • Return a deterministic service-unavailable error while a server slot has not completed startup.
  • Preserve legacy ambient resolution for callers that do not carry a server slot.
  • Cover the second embedded server startup window with an opt-in integration test hook.

Verification

  • cargo fmt --all --check
  • cargo test -p rustfs --lib admin::runtime_sources::tests
  • cargo test -p rustfs --test embedded_multi_instance_test --features e2e-test-hooks --no-run
  • make pre-commit

Impact

During the brief embedded-server startup window, non-public requests now return HTTP 503 instead of resolving another server's process-global context. Public health endpoints remain available.

Additional Notes

The local full make pre-pr suite cannot be meaningfully completed because this host's transparent proxy intercepts embedded 127.0.0.1 test traffic. CI runs the integration test in a clean environment and remains required.

@github-actions

Copy link
Copy Markdown
Contributor

CLA requirements are satisfied for this pull request.

Copilot AI review requested due to automatic review settings July 29, 2026 20:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@overtrue
overtrue enabled auto-merge (squash) July 29, 2026 20:17
@overtrue
overtrue disabled auto-merge July 29, 2026 23:25
@overtrue
overtrue merged commit 3a6212f into main Jul 29, 2026
48 of 51 checks passed
@overtrue
overtrue deleted the codex/backlog-1553-no-ambient-slot-fallback branch July 29, 2026 23:25
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.

2 participants