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

Throttler: fix to client usage in vreplication and table GC #7422

Conversation

shlomi-noach
Copy link
Contributor

Description

In #7364 we introduced client.go, a throttler client, which we then used in tabletserver/tablegc, vreplication/engine and vstreamer/engine.

In the first two, I used the wrong check type: ThrottleCheckSelf, where in fact I should have used ThrottleCheckPrimaryWrite because table GC and vreplication/engine both write to a primary and should therefore consider replication lag on the shard. This must have been a copy+paste mistake.

The reason endtoend tests didn't catch this is that we don't have the capacity to run replicas on our vreplication tests, and so we only have primaries; in that scenario both types of checks converge to the same result.

Related Issue(s)

Tracking: #7362

Checklist

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

Impacted Areas in Vitess

Components that this PR will affect:

  • Query Serving
  • VReplication
  • Cluster Management
  • Build/CI
  • VTAdmin

shlomi-noach added a commit to planetscale/vitess that referenced this pull request Feb 1, 2021
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 11f0f30 into vitessio:master Feb 4, 2021
@rohit-nayak-ps rohit-nayak-ps deleted the throttle-client-fix-primary-writes branch February 4, 2021 22:32
@askdba askdba added this to the v10.0 milestone Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants