Skip to content
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

release-19.2: sql: fix locality information in show ranges #44312

Merged
merged 1 commit into from
Jan 23, 2020

Conversation

darinpp
Copy link
Contributor

@darinpp darinpp commented Jan 23, 2020

Backport 1/1 commits from #43807.

/cc @cockroachdb/release


Previously the locality information in show ranges was incorrectly assuming
that range descriptors are node id based.
This was causing a mismatch between replicas tuple and the locality.
To address this, this change makes the locality info be based on store ids.

Fixes #43755, #30940

Release note (sql change): Show ranges now shows locality information
consistent with the range descriptor when node id and store id don't match..

Previously the locality information in show ranges was incorrectly assuming
that range descriptors are node id based.
This was causing a mismatch between replicas tuple and the locality.
To address this, this change makes the locality info be based on store ids.

Fixes cockroachdb#43755, cockroachdb#30940

Release note (sql change): Show ranges now shows locality information
consistent with the range descriptor when node id and store id don't match..
@cockroach-teamcity
Copy link
Member

This change is Reviewable

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