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

Support safe MySQL upgrades #483

Merged
merged 6 commits into from
Oct 5, 2023
Merged

Support safe MySQL upgrades #483

merged 6 commits into from
Oct 5, 2023

Conversation

frouioui
Copy link
Member

@frouioui frouioui commented Oct 4, 2023

This Pull Request adds code logic that will set the global.innodb_fast_shutdown MySQL variable to 0 if there is a need for a safe MySQL upgrade.

Part of vitessio/vitess#14160

@frouioui frouioui marked this pull request as ready for review October 4, 2023 00:21
Copy link
Collaborator

@GuptaManan100 GuptaManan100 left a comment

Choose a reason for hiding this comment

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

Rest LGTM!

Comment on lines 47 to 58
{
name: "equal version with same registry",
current: "docker.io/vitess/mysql:8.0.23",
desired: "docker.io/vitess/mysql:8.0.23",
needsSafe: false,
},
{
name: "equal version with different registry",
current: "docker.io/vitess/mysql:8.0.23",
desired: "docker.io/vitess/mysql:8.0.23",
needsSafe: false,
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

They are the same cases

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed via c30e759

Copy link
Collaborator

@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.

Nice work! I only found a couple of typos in comments. Please fix them and then merge.

pkg/controller/vitessshardreplication/reconcile_drain.go Outdated Show resolved Hide resolved
pkg/controller/vitessshardreplication/reconcile_drain.go Outdated Show resolved Hide resolved
frouioui and others added 6 commits October 5, 2023 16:30
Signed-off-by: Florent Poinsard <[email protected]>
Signed-off-by: Florent Poinsard <[email protected]>
Signed-off-by: Harshit Gangal <[email protected]>
Signed-off-by: Florent Poinsard <[email protected]>
Signed-off-by: Florent Poinsard <[email protected]>
Co-authored-by: Deepthi Sigireddi <[email protected]>
Signed-off-by: Florent Poinsard <[email protected]>
Co-authored-by: Deepthi Sigireddi <[email protected]>
Signed-off-by: Florent Poinsard <[email protected]>
@frouioui frouioui merged commit a037608 into main Oct 5, 2023
9 checks passed
@frouioui frouioui deleted the support-mysql-upgrade branch October 5, 2023 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants