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

[vtadmin] Add cluster protos to discovery and vtsql package constructors #7224

Merged
merged 3 commits into from
Dec 24, 2020

Conversation

ajm188
Copy link
Contributor

@ajm188 ajm188 commented Dec 24, 2020

Description

This adds some interface improvements that I immediately regretted not having in the initial PR, namely putting a full Cluster metadata struct in both discovery and vtsql constructors. This allows us to "fix" the problem where we were only passing cluster names (which by design are not necessarily globally unique, so this was a bug) without falling back to a clunkier interface of passing a number of strings (which could change in number (and type!) if we ever add more fields to the cluster proto).

Related Issue(s)

Checklist

  • Should this PR be backported?
  • Tests were added or are not required
  • Documentation was added or is not required

Deployment Notes

Impacted Areas in Vitess

Components that this PR will affect:

  • Query Serving
  • VReplication
  • Cluster Management
  • Build

There are cases where we need more than just the name, so let's make
sure we have it.

Signed-off-by: Andrew Mason <[email protected]>
@ajm188 ajm188 changed the title Am vtadmin pass clusters [vtadmin] Add cluster protos to discovery and vtsql package constructors Dec 24, 2020
Copy link
Contributor

@rohit-nayak-ps rohit-nayak-ps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rohit-nayak-ps rohit-nayak-ps merged commit 9702875 into vitessio:master Dec 24, 2020
@askdba askdba added this to the v9.0 milestone Jan 6, 2021
@ajm188 ajm188 deleted the am_vtadmin_pass_clusters branch May 29, 2021 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants