Repository navigation
Report readiness from startup state and load Raft options - #38
Merged
Merged
Conversation
This was referenced Nov 19, 2026
cursor
Bot
force-pushed
the
cursor/production-operability-12a1
branch
from
November 19, 2026 19:41
d197c70 to
dbd792b
Compare
cursor
Bot
changed the base branch from
main
to
cursor/explicit-auth-opt-in-f050
November 19, 2026 19:42
cursor
Bot
force-pushed
the
cursor/production-operability-12a1
branch
from
November 19, 2026 19:43
dbd792b to
f55cc6c
Compare
Load the [raft] table instead of ignoring raft_options, and publish unlabeled probes and gauges that stay not-ready until local shards can actually take traffic. Co-authored-by: RustFS <hello@rustfs.com>
loverustfs
force-pushed
the
cursor/production-operability-12a1
branch
from
November 19, 2026 19:53
f55cc6c to
588e666
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dependency
#35 is merged.
mainis9b152ae4f820fa5f8e6971eab0862d23e5ca385f(parent36d8e950926b9e1f34c43e3f377031ff54963a2a). GitHub restacked this pull request onto that commit as588e666fa57c5bd308d9bbc3d7b2a520777701fb. That restack has the same tree as the reviewedf55cc6cf653a475a41de6846bbf2d03d749acdca(452e0d1291f34aa8a69d663c6629383a512e9f86). The earlier integration point8b276d3714ef8aef02179d93baefb1cdb0a933e1is the pre-merge head of #35, not the current base.This head is
5f9a50e555653b51685ab76c9af9936a46296f57, one documentation commit on588e666. It does not rewrite that history. #36 is not imported.What this pull request changes
[raft]is loaded./readyzand/healthzare HTTP 200 only when startup has finished, shutdown has not started, and every local Raft group has finished startup replay, applied a log entry, is a voter, and knows a leader. A bound socket is not enough./livezstays 200 during startup and graceful shutdown. gRPC stays open when the probe is 503.Authentication is the behavior now on
mainat9b152ae4:classify_secret: whitespace-only credentials return HTTP 401 on/metrics,/livez,/readyz, and/healthzbefore any bearer compare. An exactBearerplus those spaces is still 401. A configured secret still requires an exact match. An empty secret does not challenge probes, and startup reaches that state only with the opt-in.allow_unauthenticatedaccepts only a literal loopback IP (127.0.0.0/8or::1).localhostis not accepted and is not resolved.accept. A busy saved port rechecks the fallback string before binding it. The metrics listener checks the bound address again insidespawn_metrics_listenerbefore it is served.from_toml_strstill runs that rejection, thenraft_options.validate().reject_unauthenticated_bindstill callsvalidate_for_startup().docs/en/operability.mdnow states those resulting-tree rules and pins the authentication baseline to9b152ae4. It no longer says #35 is unmerged. Locale pages that still describe the raft skip are left for a separate documentation change.Source-level checks
On the pre-restack tree, identical to
588e666:cargo test -p metadb-server --lib -- operability:: metrics:: metrics_http:: config:: auth_tests— 17 passed. The documentation commit5f9a50ewas not tested. No product, test, or workflow file changed in it.Not run
Integration tests, workspace tests, stress, prefix-load, and GitHub Actions. No deploy, Aliyun access, auto-merge, or CI subscription. This pull request is left for an independent check before merge.
Leftovers
docs/en/operability.mdstill sayraft_optionsis skipped. That reconciliation is separate and is not imported here.TxnRecoveryWorkeris not a readiness gate. Raft options apply at group start only.