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

Add release notes for the new connection drain (+ use dashes instead of underscore) #16334

Merged

Conversation

frouioui
Copy link
Member

@frouioui frouioui commented Jul 3, 2024

Description

This PR adds the release notes for the changes implemented by #16298.

It also changes the flag to use dashes instead of underscores.

Related Issue(s)

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
@frouioui frouioui requested a review from deepthi as a code owner July 3, 2024 19:52
Copy link
Contributor

vitess-bot bot commented Jul 3, 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.

@vitess-bot vitess-bot bot added NeedsBackportReason If backport labels have been applied to a PR, a justification is required NeedsDescriptionUpdate The description is not clear or comprehensive enough, and needs work NeedsIssue A linked issue is missing for this Pull Request NeedsWebsiteDocsUpdate What it says labels Jul 3, 2024
@frouioui frouioui added Type: Internal Cleanup Component: Documentation docs related issues/PRs and removed NeedsDescriptionUpdate The description is not clear or comprehensive enough, and needs work NeedsWebsiteDocsUpdate What it says NeedsIssue A linked issue is missing for this Pull Request NeedsBackportReason If backport labels have been applied to a PR, a justification is required labels Jul 3, 2024
@github-actions github-actions bot added this to the v21.0.0 milestone Jul 3, 2024
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
@frouioui frouioui requested a review from systay as a code owner July 8, 2024 13:14
@frouioui frouioui changed the title Add release notes for the new connection drain Add release notes for the new connection drain (+ use dashes instead of underscore) Jul 8, 2024
Copy link

codecov bot commented Jul 8, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 68.70%. Comparing base (d236ccd) to head (c9d4b2c).
Report is 12 commits behind head on main.

Files Patch % Lines
go/vt/vtgate/plugin_mysql_server.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16334      +/-   ##
==========================================
- Coverage   68.72%   68.70%   -0.03%     
==========================================
  Files        1547     1547              
  Lines      198290   198287       -3     
==========================================
- Hits       136279   136229      -50     
- Misses      62011    62058      +47     

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

Copy link
Contributor

@mattlord mattlord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had some suggestions, but up to you, whatever you prefer.

changelog/21.0/21.0.0/summary.md Outdated Show resolved Hide resolved
Comment on lines 56 to 58
We are adding a new way to terminate VTGate in v21 by using a connection drain timeout rather than an activity drain timeout.
The goal of this new drain is to disallow new connections when VTGate is shutting down, but keep allowing idle/actives
connections to execute queries until they disconnect or until the `--onterm_timeout` is reached.
Copy link
Contributor

@mattlord mattlord Jul 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
We are adding a new way to terminate VTGate in v21 by using a connection drain timeout rather than an activity drain timeout.
The goal of this new drain is to disallow new connections when VTGate is shutting down, but keep allowing idle/actives
connections to execute queries until they disconnect or until the `--onterm_timeout` is reached.
We added a new option to affect the VTGate shutdown process in v21 by using a connection drain timeout rather than the older activity drain timeout. The goal of this new connection draining option is to disallow new connections when VTGate is shutting down, but continue allowing existing connections to finish their in flight work, giving them up to `--onterm_timeout` to complete it.
This new behavior can be enabled by specifying the new `--mysql-server-drain-onterm` flag to VTGate.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not follow the suggested text at 100%, but I improved it via 325c619, here is what I wrote:

We added a new option to affect the VTGate shutdown process in v21 by using a connection drain timeout rather than the older activity drain timeout.
The goal of this new behavior, connection draining option, is to disallow new connections when VTGate is shutting down,
but continue allowing existing connections to finish their work until they manually disconnect or until the `--onterm_timeout` timeout is reached,
without getting a `Server shutdown in progress` error.

This new behavior can be enabled by specifying the new `--mysql-server-drain-onterm` flag to VTGate.

go/vt/vtgate/plugin_mysql_server.go Outdated Show resolved Hide resolved
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
Copy link
Member

@deepthi deepthi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope you got all references to the underscore version :)

@frouioui
Copy link
Member Author

frouioui commented Jul 8, 2024

I hope you got all references to the underscore version :)

The release notes + go/test/endtoend/vtgate/connectiondrain/main_test.go are the only places where we use/set the flag.

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
@frouioui frouioui merged commit 079ef28 into vitessio:main Jul 8, 2024
94 checks passed
@frouioui frouioui deleted the release-notes-new-connection-drain branch July 8, 2024 20:48
venkatraju pushed a commit to slackhq/vitess that referenced this pull request Aug 29, 2024
…of underscore) (vitessio#16334)

Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
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