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

slack-15.0: pre-backport txthrottler crash fixes #480

Merged
merged 10 commits into from
Aug 21, 2024

Conversation

timvaillancourt
Copy link
Member

@timvaillancourt timvaillancourt commented Aug 8, 2024

Description

This PR pre-backports a set of PRs to address crashes in txthrottler on v15+

I'll return with a 2nd backport when those PRs have the additional testing requested. Note: this cleanup should happen before this goes to production

Backports:

  1. txthrottler: move ThrottlerInterface to go/vt/throttler, use slices pkg, add stats vitessio/vitess#16248 (to make 2 and 3 easier)
  2. Support passing filters to discovery.NewHealthCheck(...) vitessio/vitess#16170
  3. Fix race in replicationLagModule of go/vt/throttle vitessio/vitess#16078

Checklist

  • "Backport to:" labels have been added if this change should be back-ported
  • Tests were added or are not required
  • Did the new or modified tests pass consistently locally and on the CI
  • Documentation was added or is not required

Deployment Notes

timvaillancourt and others added 9 commits August 7, 2024 20:52
Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>
@github-actions github-actions bot added this to the v15.0.5 milestone Aug 8, 2024
@timvaillancourt timvaillancourt marked this pull request as ready for review August 8, 2024 19:09
@timvaillancourt timvaillancourt requested a review from a team as a code owner August 8, 2024 19:09
@timvaillancourt timvaillancourt merged commit 00ac76d into slack-15.0 Aug 21, 2024
194 checks passed
@timvaillancourt timvaillancourt deleted the txthrottler-fix-pre-bps-slack-15.0 branch August 21, 2024 18:10
makinje16 pushed a commit that referenced this pull request Aug 28, 2024
* `txthrottler`: move `ThrottlerInterface` to `go/vt/throttler`, use `slices` pkg, add stats (vitessio#16248)

Signed-off-by: Tim Vaillancourt <[email protected]>

* revert to `reflect`

Signed-off-by: Tim Vaillancourt <[email protected]>

* Support passing filters to `discovery.NewHealthCheck(...)`

Signed-off-by: Tim Vaillancourt <[email protected]>

* Update go/vt/vttablet/tabletserver/txthrottler/tx_throttler.go

Co-authored-by: Matt Lord <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>

* Address some PR suggestions

Signed-off-by: Tim Vaillancourt <[email protected]>

* PR ctx suggestion

Signed-off-by: Tim Vaillancourt <[email protected]>

* fix test

Signed-off-by: Tim Vaillancourt <[email protected]>

* simplify updateHealthCheckCells signature

Signed-off-by: Tim Vaillancourt <[email protected]>

* Fix race in `replicationLagModule` of `go/vt/throttle`

Signed-off-by: Tim Vaillancourt <[email protected]>

---------

Signed-off-by: Tim Vaillancourt <[email protected]>
Co-authored-by: Matt Lord <[email protected]>
makinje16 pushed a commit that referenced this pull request Aug 29, 2024
* `txthrottler`: move `ThrottlerInterface` to `go/vt/throttler`, use `slices` pkg, add stats (vitessio#16248)

Signed-off-by: Tim Vaillancourt <[email protected]>

* revert to `reflect`

Signed-off-by: Tim Vaillancourt <[email protected]>

* Support passing filters to `discovery.NewHealthCheck(...)`

Signed-off-by: Tim Vaillancourt <[email protected]>

* Update go/vt/vttablet/tabletserver/txthrottler/tx_throttler.go

Co-authored-by: Matt Lord <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>

* Address some PR suggestions

Signed-off-by: Tim Vaillancourt <[email protected]>

* PR ctx suggestion

Signed-off-by: Tim Vaillancourt <[email protected]>

* fix test

Signed-off-by: Tim Vaillancourt <[email protected]>

* simplify updateHealthCheckCells signature

Signed-off-by: Tim Vaillancourt <[email protected]>

* Fix race in `replicationLagModule` of `go/vt/throttle`

Signed-off-by: Tim Vaillancourt <[email protected]>

---------

Signed-off-by: Tim Vaillancourt <[email protected]>
Co-authored-by: Matt Lord <[email protected]>
makinje16 added a commit that referenced this pull request Sep 24, 2024
…tessio#13582) (#497)

* VReplication: Make Source Tablet Selection More Robust (vitessio#13582)

* update sprintf args.

* `slack-15.0`: pre-backport `txthrottler` crash fixes (#480)

* `txthrottler`: move `ThrottlerInterface` to `go/vt/throttler`, use `slices` pkg, add stats (vitessio#16248)

Signed-off-by: Tim Vaillancourt <[email protected]>

* revert to `reflect`

Signed-off-by: Tim Vaillancourt <[email protected]>

* Support passing filters to `discovery.NewHealthCheck(...)`

Signed-off-by: Tim Vaillancourt <[email protected]>

* Update go/vt/vttablet/tabletserver/txthrottler/tx_throttler.go

Co-authored-by: Matt Lord <[email protected]>
Signed-off-by: Tim Vaillancourt <[email protected]>

* Address some PR suggestions

Signed-off-by: Tim Vaillancourt <[email protected]>

* PR ctx suggestion

Signed-off-by: Tim Vaillancourt <[email protected]>

* fix test

Signed-off-by: Tim Vaillancourt <[email protected]>

* simplify updateHealthCheckCells signature

Signed-off-by: Tim Vaillancourt <[email protected]>

* Fix race in `replicationLagModule` of `go/vt/throttle`

Signed-off-by: Tim Vaillancourt <[email protected]>

---------

Signed-off-by: Tim Vaillancourt <[email protected]>
Co-authored-by: Matt Lord <[email protected]>

* ignore unused wrangler weighted semaphore

---------

Signed-off-by: Tim Vaillancourt <[email protected]>
Co-authored-by: Tim Vaillancourt <[email protected]>
Co-authored-by: Matt Lord <[email protected]>
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.

2 participants