-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Exclude aux fields from "cluster nodes" and "cluster replicas" output #12166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
of the "cluster nodes" command. The "shard-id" and other aux fields will no longer appear in the default output. To access the aux fields, the caller must specify the "verbose" flag with the "cluster nodes" command (e.g., "cluster nodes verbose"). This change provides users with the flexibility to retrieve the aux fields explicitly when needed.
|
@yossigo Related to what we discussed about omitting the extra information so that SHARD ID and nodename don't introduce a user facing different in 7.2. |
of the "cluster nodes" command. The "shard-id" and other aux fields will no longer appear in the default output. To access the aux fields, the caller must specify the "verbose" flag with the "cluster nodes" command (e.g., "cluster nodes verbose"). This change provides users with the flexibility to retrieve the aux fields explicitly when needed.
@madolson the top comment says they're still visible, and iiuc it also adds an input argument (which from compatibility and interface has even higher impact) |
Thanks for the feedback, @oranagra. The existing behavior of CLUSTER NODES remains unchanged, so there shouldn't be any immediate compatibility issues to worry about. Also, since the VERBOSE flag doesn't even exist, it's highly unlikely that anyone is relying on it currently. The question that I think is worth a double click on is do we see |
|
that's exactly what worries me. |
|
Yeah, future-proofing is the key. Here's my take on the current situation:
The question to me is if, how, and when we can reconcile 3) and 4), granted that 4) is a must-have IfIMO, we should have a mechanism that allows admins to retrieve the entire content of nodes.conf in one call. HowIf we're comfortable with extending Alternatively, we could introduce a new command, starting fresh and avoiding further modifications to WhenI understand the concern about appcompat risks, so I'm also open to the suggestion of hiding all aux fields in 7.2 and avoiding further changes to |
I'm okay with this. |
|
All aux fields removed from |
oranagra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so this should now be mentioned in the 7.2 release notes (since it reverts something that was mentioned in RC1 release notes)?
In redis#12166, we removed a call to CLUSTER SLAVES, which then caused reply-schemas ci to fail: ``` WARNING! The following commands were not hit at all: cluster|slaves ERROR! at least one command was not hit by the tests ``` Because we already have command output that cover CLUSTER REPLICAS elsewhere, here we simply add some dummy tests to fix the ci.
In #12166, we removed a call to CLUSTER SLAVES, which then caused reply-schemas ci to fail: ``` WARNING! The following commands were not hit at all: cluster|slaves ERROR! at least one command was not hit by the tests ``` Because we already have command output that cover CLUSTER REPLICAS elsewhere, here we simply add some dummy tests to fix the ci.
This commit excludes aux fields from the output of the
cluster nodesandcluster replicascommand.Specifically
shard-id, which was introduced in 7.2 RC1 (see #10536).We may decide to re-introduce them in some form or another in the future, but not in v7.2.