Move towards MySQL 8.0 as the default template generation (#11153)#11619
Merged
harshit-gangal merged 32 commits intovitessio:release-13.0from Nov 22, 2022
Merged
Move towards MySQL 8.0 as the default template generation (#11153)#11619harshit-gangal merged 32 commits intovitessio:release-13.0from
harshit-gangal merged 32 commits intovitessio:release-13.0from
Conversation
…1153) * Move towards MySQL 8.0 as the default template generation This upgrades the remaining things to Ubuntu 20.04 and makes MySQL 8.0 the default we run tests against. We still have tests for MySQL 5.7 but those are now explicitly opted into. This should finish up the Ubuntu 20.04 upgrade and also makes things easier for the future when we need to upgrade again. Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> * CI: rename shard vtorc_8.0 to vtorc_5.7, change expected test output for 8.0 Signed-off-by: deepthi <deepthi@planetscale.com> * CI: increase timeout for 8.0 tests on the actual test step from 30 to 45 mins Signed-off-by: deepthi <deepthi@planetscale.com> * CI: increase timeout to 45 minutes for mysql57 tests too. We really only need this for vtorc, but I've made the change to the template so all tests get it. Signed-off-by: deepthi <deepthi@planetscale.com> * CI: fix vtorc test to work with both 5.7 and 8.0 Signed-off-by: deepthi <deepthi@planetscale.com> * CI: missed docker flag in mysql57 template, one more fix to vtorc test Signed-off-by: deepthi <deepthi@planetscale.com> * removing spaces from pb file Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com> * removing spaces in pb file part 2 Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com> Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> Signed-off-by: deepthi <deepthi@planetscale.com> Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com> Co-authored-by: deepthi <deepthi@planetscale.com> Co-authored-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Contributor
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
If a new flag is being introduced:
If a workflow is added or modified:
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
* Prevent deadlocks related to 0 receiver behavior Signed-off-by: Matt Lord <mattalord@gmail.com> * Update test tables to use poller_idx Signed-off-by: Matt Lord <mattalord@gmail.com> * Minor changes after mutex usage review in message manager + cache Signed-off-by: Matt Lord <mattalord@gmail.com> * Use atomics for receiver count and messages pending Signed-off-by: Matt Lord <mattalord@gmail.com> * Don't take exclusive lock when in fast path Signed-off-by: Matt Lord <mattalord@gmail.com> * Update tests to use the new recommended message table structure See: vitessio/website#1015 Signed-off-by: Matt Lord <mattalord@gmail.com> * Correct tests Signed-off-by: Matt Lord <mattalord@gmail.com> * Update e2e test to use new recommended table structure Signed-off-by: Matt Lord <mattalord@gmail.com> * Fix TestMessageStreamingPlan test Signed-off-by: Matt Lord <mattalord@gmail.com> * Fix godriver/TestStreamMessaging test Signed-off-by: Matt Lord <mattalord@gmail.com> * Split streamMu into streamProcessingMu and lastPollPositionMu Signed-off-by: Matt Lord <mattalord@gmail.com> * Poller cannot take main lock w/o having X stream processing lock Signed-off-by: Matt Lord <mattalord@gmail.com> * Improve the comments a bit Signed-off-by: Matt Lord <mattalord@gmail.com> * Hold the main mutex during Add This is for safe concurrency with the last receiver unsubscribing Signed-off-by: Matt Lord <mattalord@gmail.com> * Changes after pair reviewing with Sugu Signed-off-by: Matt Lord <mattalord@gmail.com> * Use my GitHub handle for the self reference Signed-off-by: Matt Lord <mattalord@gmail.com> Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
…ick11153 Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
3 tasks
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
…rectly Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Signed-off-by: Rameez Sajwani <rameezwazirali@hotmail.com>
Comment on lines
1401
to
1406
| // truncateSQLAndBindVars calls TruncateForLog which: | ||
| // splits off trailing comments, truncates the query, re-adds the trailing comments, | ||
| // if sanitize is false appends quoted bindvar:value pairs in sorted order, and | ||
| // lastly it truncates the resulting string | ||
| // | ||
| // splits off trailing comments, truncates the query, re-adds the trailing comments, | ||
| // if sanitize is false appends quoted bindvar:value pairs in sorted order, and | ||
| // lastly it truncates the resulting string | ||
| func truncateSQLAndBindVars(sql string, bindVariables map[string]*querypb.BindVariable, sanitize bool) string { |
Member
There was a problem hiding this comment.
not sure about this formatting change, what would have caused this.
harshit-gangal
approved these changes
Nov 21, 2022
Member
harshit-gangal
left a comment
There was a problem hiding this comment.
LGTM for query serving side changes.
Member
rohit-nayak-ps
approved these changes
Nov 21, 2022
Member
rohit-nayak-ps
left a comment
There was a problem hiding this comment.
vrep related changes look good.
This was referenced May 22, 2023
This was referenced Jun 20, 2023
This was referenced Feb 2, 2024
This was referenced Feb 11, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This upgrades the remaining things to Ubuntu 20.04 and makes MySQL 8.0 the default we run tests against. We still have tests for MySQL 5.7 but those are now explicitly opted into.
This should finish up the Ubuntu 20.04 upgrade and also makes things easier for the future when we need to upgrade again.
Signed-off-by: Dirkjan Bussink d.bussink@gmail.com
Signed-off-by: deepthi deepthi@planetscale.com
Signed-off-by: deepthi deepthi@planetscale.com
Signed-off-by: deepthi deepthi@planetscale.com
Signed-off-by: deepthi deepthi@planetscale.com
Signed-off-by: deepthi deepthi@planetscale.com
Signed-off-by: Rameez Sajwani rameezwazirali@hotmail.com
Signed-off-by: Rameez Sajwani rameezwazirali@hotmail.com
Signed-off-by: Dirkjan Bussink d.bussink@gmail.com
Signed-off-by: deepthi deepthi@planetscale.com
Signed-off-by: Rameez Sajwani rameezwazirali@hotmail.com
Co-authored-by: deepthi deepthi@planetscale.com
Co-authored-by: Rameez Sajwani rameezwazirali@hotmail.com
Description
There are two main changes in CI workflow been done as part of this PR.
This PR cherry-pick (#11153) the change from main where we have made Mysql8.0.x as default database (from Mysql 5.7). There were certain issues which were hard to cherry-pick from main as a result of moving Mysql8.0, especially failures in onlineddl_vrepl_suite which compelled us to pin Mysql version to 8.0.25. For example we no longer use Tengo whereas in v13 we used it for schemadiff. To remove Tango from v13 is a bigger work item.
Installing Deb files for 8.0.25 was giving a lot of pain during requisite deployment, therefore, we choose to un-tar the package with binaries and set VT_MYSQL_ROOT directory during
run end-to-end stepin workflow.Apart from workflow changes, there were some compatibility issues between Mysql5.7 and Mysql8.0 which resulted in test failures. They are also addressed in this PR.
Related Issue(s)
#11511
Checklist
Deployment Notes