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

boost: load query configs in vtgate #15582

Closed
wants to merge 127 commits into from

Conversation

benetis
Copy link

@benetis benetis commented Mar 27, 2024

No description provided.

GuptaManan100 and others added 30 commits July 15, 2021 08:23
…lt-11.0

Fix for function calls in DEFAULT value of CREATE TABLE statement in release-11.0
…ion analysis did not update completed_timestamp. As result lifecycle would not run - retroactively updating completed_timestamp for existing NULL entries - liveness_timestamp now always set with started_timestamp, so that it is never NULL even if migration didn't report liveness. This is essential for detecting and marking stale migrations - when garbage collecting artifacts, RENAME statement would create collissions between artifacts of same migration. This is now solved by assigning distinct timestamps to artifacts of same migration - on the safe side, though there is no evidence this ever happened, whenever an artifact is added, we set cleanup_timestamp to be NULL

Signed-off-by: Shlomi Noach <[email protected]>
…ration-compeleted-timestamp-release-11

Backport: Fixing multiple issues related to onlineddl/lifecycle
…-11.0

Change local example to use v2 vreplication flows
boolean values should not be parenthesised in default clause - release 11
…ss-migration-log-release-11

SHOW VITESS_MIGRATION '...' LOGS, retain logs for 24 hours
for testing

Signed-off-by: GuptaManan100 <[email protected]>
Co-authored-by: harshit-gangal <[email protected]>
Signed-off-by: Harshit Gangal <[email protected]>
Signed-off-by: Harshit Gangal <[email protected]>
…mming the logs. Fix logic for incrementing count of recurring error messages.

Signed-off-by: Rohit Nayak <[email protected]>
[11.0] query serving to continue when topo server restarts
DeathBorn and others added 20 commits January 26, 2023 14:46
…hannel might block the vstream thread if target channel goes away: context was not being checked then. Fix health stream goroutine leak. (vitessio#10571)

Signed-off-by: Rohit Nayak <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
VStreamer: fix deadlock when there are a lot of vschema changes at the same time as binlog events (vitessio#11325)

* Don't block on vschema channel in case of heavy vschema changes and vstream load

Signed-off-by: Rohit Nayak <[email protected]>

* Prevent VStreamer engine deadlocks during state transitions

The VStreamer engine is somewhat unusual in two ways:
  1. It is open and running on replica tablets rather than only
     running on primary tablets.
  2. It has no controllers so the main engine mutex is widely shared.

Because of this, when a tablet has open vstreams (direct binary log
streams) performing work and a state transition starts, it can
deadlock with the tabletmanager's state lock when checking if
the engine is open or not.

Signed-off-by: Matt Lord <[email protected]>

* Address review comments

Signed-off-by: Rohit Nayak <[email protected]>

Signed-off-by: Rohit Nayak <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
Co-authored-by: Matt Lord <[email protected]>
Signed-off-by: Vilius Okockis <[email protected]>
…lizeHexValuesInQueries vitessio@322ac09 using vitessio#9163 as a guide

Merge pull request vitessio#9118 from planetscale/NormalizeHexValuesInQueries

Ensure that hex query predicates are normalized for planner cache

Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Vilius Okockis <[email protected]>
Take MySQL column type into account in vstreamer

This is required when we need to match MySQL behavior for data
that requires column type information as well. For example, the
binlog event metadata makes no distinction between events for a
BINARY(4) column and events for a CHAR(4) column with a binary
collation like utf8mb4_bin. So we need to know the underlying
MySQL column type in order to handle them disctinctly -- MySQL
pads (fixed length) binary columns on the right side with null
bytes, but it does NOT do that for (fixed lengthed) CHARo
columns, regardless of the collation.

Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Vilius Okockis <[email protected]>
Detect and handle MySQL 8 specifically in vstreamer tests

And use ToLower when looking for BINARY types to be safe.

Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Vilius Okockis <[email protected]>
fix: copy bindvariables in logstats

Signed-off-by: Harshit Gangal <[email protected]>
Signed-off-by: Vilius Okockis <[email protected]>
Fix schema engine reload so it accounts for swapped tables during online DDL

Signed-off-by: Harish Mallipeddi <[email protected]>
Signed-off-by: Vilius Okockis <[email protected]>
Reinstate lastChange logic to handle multiple DDLs that happen within a second: for instance if a column is altered immediately after creation then we get test failures due to incorrect FIELD events which are based on the previous DDL. Unit tests: reload schema when tablets are added/deleted since the test schema engine is an external singleton

Signed-off-by: Rohit Nayak <[email protected]>
Signed-off-by: Vilius Okockis <[email protected]>
Address review comments

Signed-off-by: Rohit Nayak <[email protected]>
Signed-off-by: Vilius Okockis <[email protected]>
…dropped

schema engine: reset table size stats when a table is dropped

Signed-off-by: deepthi <[email protected]>
Signed-off-by: Vilius Okockis <[email protected]>
We did not check for this config state at externalize.
When -stop_after_copy=false was used for the lookup vindex
materialization the workflow state will be Running when
it's healthy.

Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Vaidas Balys <[email protected]>
Copy link
Contributor

vitess-bot bot commented Mar 27, 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 Mar 27, 2024
@benetis benetis closed this Mar 27, 2024
@github-actions github-actions bot added this to the v20.0.0 milestone Mar 27, 2024
@benetis benetis deleted the vinted/zygis/is-boosted-checks branch March 27, 2024 15:37
@benetis benetis restored the vinted/zygis/is-boosted-checks branch March 27, 2024 15:37
@benetis
Copy link
Author

benetis commented Mar 27, 2024

Mistake, sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.