Improved warning for Observer mode#7433
Merged
neilalexander merged 1 commit intonats-io:mainfrom Oct 14, 2025
Merged
Conversation
Signed-off-by: Michael Röschter <michael@roeschter.de>
neilalexander
added a commit
that referenced
this pull request
Oct 30, 2025
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.
This is purely a documentation/info update, which catches a situation where a correctly configured leaf cluster would fail to elect a meta leader, but the user would be left completely clueless as to why.
When a cluster is started the first time(!) it will check if leaf nodes connections to SYS are configured. If this is the case the leaf cluster MAY be an extension of a hub cluster. It cannot verify this until the connection is actually made and it can compare jetstream domains (its an extension only if the domains are the same)
As a result the cluster goes into "Observer mode" in which meta leader election is deferred till the hub is connection via a SYS leaf node connection.
BUT, not hint is printed on the FIRST start- only on the SECOND start of the cluster a hint was printed.
The /healthz probe fails with a 503 and no further details beyond
"JetStream has not established contact with a meta leader"This leaves the user completely clueless as to why the meta leader was not elected.
nats server report jetstreamalso gives no hint as to the reason.This change prints the extension_hint warning on first start and extends the explanation.
Signed-off-by: Michael Röschter michael@roeschter.de