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
CLI cockroach node status does not show correct number of ranges for each node #99702
Comments
I looked onto what is actually shown on charts and in CLI.
In this particular case raised, we have 3 nodes and each holds replicas for all ranges in the system. While leaseholders is 1/3 of ranges. If we run experiment with 6 nodes, then we will have a subset of ranges reported by CLI in ranges and it will differ from node to node. Same for ranges in UI where it would be 1/6 of ranges. Not sure what would be a solution here beside docs as changing naming could generate confusion for existing customers who are used to current naming. |
Thank you for looking into this.
This is definitely confusing, especially since the The point of this issue however, is more specifically as it relates to the
This is exactly the point of this bug report, this is not what the Are you saying the
|
I think that would be reasonable. Maybe just replicas would do as we have replica_leaseholders which is a subset of our counter in question. |
That sounds good, just trying to make it more consistent, whatever we decide to call it :-) |
Describe the problem
The
CLI
, when we run the commandcockroach node status --all
shows the total number of ranges for the entire cluster, and not the range count for a given node, as one might expect.To Reproduce
The
CLI output shows the total ranges
, thismatches with the UI when you select the entire cluster
. However, when you select a specific host in the UI, the UI displays the number of ranges for that host only, whereas the CLI does not do this and shows the range count for all nodes.UI
shows the number ofall ranges when selecting CLUSTER from dropdown
,i.e 51
(this is correct, nothing wrong here)select a specific host
, theUI
is updated and only shows the number of ranges for that given host,i.e 16
(this is correct, nothing wrong here)CLI
, when we run the commandcockroach node status --all
shows the total number of ranges for the entire cluster (ranges = 51
), and not the range count for a given node (ranges = 16
), as one might expect. Each node reports (resembling screenshot # 1 above), shouldn't this be the number of ranges in that particular node (resembling screenshot # 2 above)?Expected behavior
CLI
output ofcockroach node status --all
should display the correct number of ranges for each given node.Jira issue: CRDB-26029
gz#16399
The text was updated successfully, but these errors were encountered: