Skip to content

Fixes the SwitchTraffic bug that wasn't respecting --dry_run for readonly and replica tablets during a resharding event - #91

Merged
austenLacy merged 1 commit into
v15.0.3-shopify-3from
austenlacy/vitess-project-431/respect-dry-run-flag-on-switchtraffic
May 9, 2023
Merged

austenLacy merged 1 commit into
v15.0.3-shopify-3from
austenlacy/vitess-project-431/respect-dry-run-flag-on-switchtraffic

Conversation

@austenLacy

@austenLacy austenLacy commented Apr 26, 2023 •

Copy link
Copy Markdown

ref: https://github.com/Shopify/vitess-project/issues/431

Fixes the SwitchTraffic bug that wasn't respecting --dry_run for readonly and replica tablets during a resharding event. More details specifically in this comment.

Signed-off-by: Austen Lacy <austen.lacy@shopify.com>
@austenLacy
austenLacy changed the base branch from main to v15.0.3-shopify-3 April 26, 2023 15:39
@austenLacy austenLacy changed the title austenlacy/vitess project 431/respect dry run flag on switchtraffic Fixes the SwitchTraffic bug that wasn't respect --dry_run for readonly and replica tablets during a resharding event Apr 26, 2023

@brendar brendar left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good to me. Submit it upstream?

@austenLacy austenLacy changed the title Fixes the SwitchTraffic bug that wasn't respect --dry_run for readonly and replica tablets during a resharding event Fixes the SwitchTraffic bug that wasn't respecting --dry_run for readonly and replica tablets during a resharding event Apr 26, 2023
@austenLacy

Copy link
Copy Markdown
Author

Looks good to me. Submit it upstream?

Yep, might as well. Will be curious to see if they'll accept it or reopen the original PR. Either way should be fine for us.

@hkdsun hkdsun left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice catch 👍 I'm sure it will get merged

@hkdsun

hkdsun commented Apr 27, 2023

Copy link
Copy Markdown

reopen the original PR

Missing context? 🤔

@austenLacy

Copy link
Copy Markdown
Author

@hkdsun the linked issue has a PR that was closed (not sure why) with the same fix - vitessio#6497

@austenLacy

Copy link
Copy Markdown
Author

Upstream PR was merged - vitessio#12992

It had some e2e tests that have some conflicts with the v15 branch. The one-liner change represented in this PR is the same though so I think it's safe to merge this into our v15 branch. The upstream PR did have labels to backport the change to 14,15, and 16 though.

@hkdsun @brendar thoughts on merging this as is?

@brendar

brendar commented Apr 28, 2023

Copy link
Copy Markdown

I'm fine with merging as is

@austenLacy
austenLacy merged commit 46f1def into v15.0.3-shopify-3 May 9, 2023
@austenLacy
austenLacy deleted the austenlacy/vitess-project-431/respect-dry-run-flag-on-switchtraffic branch May 9, 2023 20:18
shanth96 pushed a commit that referenced this pull request Mar 21, 2024
Signed-off-by: Austen Lacy <austen.lacy@shopify.com>
Co-authored-by: Austen Lacy <austen.lacy@shopify.com>
(cherry picked from commit 46f1def)
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.

Bug Report: DELETE FROM <sequence table> fails with does not have a primary vindex

4 participants