Skip to content

[release-21.0] CONNPOOL: Fix race condition when waiting for connection (#18713)#18720

Merged
arthurschreiber merged 1 commit intorelease-21.0from
backport-18713-to-release-21.0
Oct 7, 2025
Merged

[release-21.0] CONNPOOL: Fix race condition when waiting for connection (#18713)#18720
arthurschreiber merged 1 commit intorelease-21.0from
backport-18713-to-release-21.0

Conversation

@vitess-bot
Copy link
Contributor

@vitess-bot vitess-bot bot commented Oct 7, 2025

Description

This is a backport of #18713

@vitess-bot vitess-bot bot added Backport This is a backport Benchmark me Add label to PR to run benchmarks Component: Query Serving Merge Conflict Skip CI Skip CI actions from running Type: Bug labels Oct 7, 2025
@vitess-bot
Copy link
Contributor Author

vitess-bot bot commented Oct 7, 2025

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.

@vitess-bot
Copy link
Contributor Author

vitess-bot bot commented Oct 7, 2025

Hello @arthurschreiber, there are conflicts in this backport.

Please address them in order to merge this Pull Request. You can execute the snippet below to reset your branch and resolve the conflict manually.

Make sure you replace origin by the name of the vitessio/vitess remote

git fetch --all
gh pr checkout 18720 -R vitessio/vitess
git reset --hard origin/release-21.0
git cherry-pick -m 1 6ea0799f25baff73804bbeeaa9ec883145e082c9

@vitess-bot
Copy link
Contributor Author

vitess-bot bot commented Oct 7, 2025

Hello! 👋

This Pull Request is now handled by arewefastyet. The current HEAD and future commits will be benchmarked.

You can find the performance comparison on the arewefastyet website.

@vitess-bot vitess-bot bot requested a review from arthurschreiber October 7, 2025 09:20
@github-actions github-actions bot added this to the v21.0.6 milestone Oct 7, 2025
Signed-off-by: Arthur Schreiber <arthurschreiber@github.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Arthur Schreiber <arthur@planetscale.com>
Co-authored-by: Matt Lord <mattalord@gmail.com>
@arthurschreiber arthurschreiber removed Skip CI Skip CI actions from running Merge Conflict labels Oct 7, 2025
@arthurschreiber arthurschreiber force-pushed the backport-18713-to-release-21.0 branch from 6e1d3fa to 2a063db Compare October 7, 2025 12:50
@arthurschreiber arthurschreiber marked this pull request as ready for review October 7, 2025 12:50
@codecov
Copy link

codecov bot commented Oct 7, 2025

Codecov Report

❌ Patch coverage is 91.95402% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.52%. Comparing base (24ef7cc) to head (2a063db).
⚠️ Report is 3 commits behind head on release-21.0.

Files with missing lines Patch % Lines
go/pools/smartconnpool/pool.go 81.48% 5 Missing ⚠️
go/pools/smartconnpool/waitlist.go 96.66% 2 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##           release-21.0   #18720      +/-   ##
================================================
- Coverage         67.54%   67.52%   -0.03%     
================================================
  Files              1572     1572              
  Lines            252474   252526      +52     
================================================
- Hits             170545   170525      -20     
- Misses            81929    82001      +72     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@arthurschreiber arthurschreiber enabled auto-merge (squash) October 7, 2025 14:26
@timvaillancourt timvaillancourt self-requested a review October 7, 2025 15:38
@arthurschreiber arthurschreiber merged commit e86b374 into release-21.0 Oct 7, 2025
100 of 101 checks passed
@arthurschreiber arthurschreiber deleted the backport-18713-to-release-21.0 branch October 7, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport This is a backport Benchmark me Add label to PR to run benchmarks Component: Query Serving Type: Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants