Skip to content

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

Merged
rohit-nayak-ps merged 1 commit intovitessio:masterfrom
planetscale:throttle-client-fix-primary-writes
Feb 4, 2021
Merged

Throttler: fix to client usage in vreplication and table GC#7422
rohit-nayak-ps merged 1 commit intovitessio:masterfrom
planetscale:throttle-client-fix-primary-writes

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

Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
shlomi-noach added a commit to planetscale/vitess that referenced this pull request Feb 1, 2021
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Copy link
Member

@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