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] GetSchema(s) should always check keyspace field when filtering tablets #7773

Merged

Conversation

ajm188
Copy link
Contributor

@ajm188 ajm188 commented Apr 1, 2021

Signed-off-by: Andrew Mason amason@slack-corp.com

Description

This fixes a bug in the size aggregation code where, I removed what I thought was a redundant check on tablet.Tablet.Keyspace, we could end up picking a tablet in ks1/-80 when we were looking for ks2/-80 (because we only compared the shard name).

I also removed a reference to a non-existent variable in a log line while I was here.

Related Issue(s)

Checklist

  • Should this PR be backported? no
  • 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/CI
  • VTAdmin

…ing tablets

Signed-off-by: Andrew Mason <amason@slack-corp.com>
@ajm188 ajm188 requested review from rafael and doeg April 1, 2021 02:44
@ajm188 ajm188 merged commit 6104508 into vitessio:master Apr 1, 2021
@ajm188 ajm188 deleted the am_vtadmin_getschemas_tabletfilter branch April 1, 2021 12:32
@ajm188 ajm188 added this to In progress in VTAdmin via automation May 21, 2021
@ajm188 ajm188 moved this from In progress to Done in VTAdmin May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants