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

[release-20.0] Support passing filters to discovery.NewHealthCheck(…) (#16170) #16872

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

timvaillancourt
Copy link
Contributor

@timvaillancourt timvaillancourt commented Oct 1, 2024

Description

This PR is a manual backport of #16170 to release-20.0 (as discussed offline with @deepthi)

The reasoning for this backport is it resolves a regression in the txthrottler (in vttablet) that causes a healthcheck stream to be opened to N x tablets (every tablet in every cell), when only the local shard tablets are required. This regression began in v15 when go/vt/discovery was refactored

Related Issue(s)

#16170

Checklist

  • "Backport to:" labels have been added if this change should be back-ported to release branches
  • If this change is to be back-ported to previous releases, a justification is included in the PR description
  • Tests were added or are not required
  • Did the new or modified tests pass consistently locally and on CI?
  • Documentation was added or is not required

Deployment Notes

Copy link
Contributor

vitess-bot bot commented Oct 1, 2024

Review Checklist

Hello reviewers! 👋 Please follow this checklist when reviewing this Pull Request.

General

  • Ensure that the Pull Request has a descriptive title.
  • Ensure there is a link to an issue (except for internal cleanup and flaky test fixes), new features should have an RFC that documents use cases and test cases.

Tests

  • Bug fixes should have at least one unit or end-to-end test, enhancement and new features should have a sufficient number of tests.

Documentation

  • Apply the release notes (needs details) label if users need to know about this change.
  • New features should be documented.
  • There should be some code comments as to why things are implemented the way they are.
  • There should be a comment at the top of each new or modified test to explain what the test does.

New flags

  • Is this flag really necessary?
  • Flag names must be clear and intuitive, use dashes (-), and have a clear help text.

If a workflow is added or modified:

  • Each item in Jobs should be named in order to mark it as required.
  • If the workflow needs to be marked as required, the maintainer team must be notified.

Backward compatibility

  • Protobuf changes should be wire-compatible.
  • Changes to _vt tables and RPCs need to be backward compatible.
  • RPC changes should be compatible with vitess-operator
  • If a flag is removed, then it should also be removed from vitess-operator and arewefastyet, if used there.
  • vtctl command output order should be stable and awk-able.

@github-actions github-actions bot added this to the v20.0.3 milestone Oct 1, 2024
@timvaillancourt timvaillancourt self-assigned this Oct 1, 2024
Copy link

codecov bot commented Oct 1, 2024

Codecov Report

Attention: Patch coverage is 63.82979% with 17 lines in your changes missing coverage. Please review.

Project coverage is 68.67%. Comparing base (4e82d72) to head (9dd3456).
Report is 1 commits behind head on release-20.0.

Files with missing lines Patch % Lines
.../vttablet/tabletserver/txthrottler/tx_throttler.go 57.14% 12 Missing ⚠️
go/vt/vtgate/tabletgateway.go 0.00% 4 Missing ⚠️
go/vt/throttler/demo/throttler_demo.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##           release-20.0   #16872      +/-   ##
================================================
+ Coverage         68.65%   68.67%   +0.01%     
================================================
  Files              1541     1541              
  Lines            197937   197951      +14     
================================================
+ Hits             135903   135940      +37     
+ Misses            62034    62011      -23     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rohit-nayak-ps rohit-nayak-ps merged commit 65a981e into release-20.0 Oct 2, 2024
191 of 192 checks passed
@rohit-nayak-ps rohit-nayak-ps deleted the release-20.0-backport-16170 branch October 2, 2024 15:00
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