-
Notifications
You must be signed in to change notification settings - Fork 917
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
[Advanced Visibility with SQL] Adding MySQL 8 schema and interface #3552
[Advanced Visibility with SQL] Adding MySQL 8 schema and interface #3552
Conversation
cbd5bbc
to
d2aace2
Compare
1ecb3e9
to
308dd21
Compare
308dd21
to
622bc9e
Compare
@@ -56,8 +56,8 @@ const ( | |||
|
|||
// TODO hard code this dir for now | |||
// need to merge persistence test config / initialization in one place |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean we're no longer testing v57?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In reality, we don't test against MySQL 5.7 anywhere. All docker container is using MySQL 8. What it means is that some tests won't run with the old visibility interface that supports MySQL v5.7.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we aren't testing MySQL 5.7 anywhere, but we provide a library for it, that's risky for our users. Fixing that is outside the scope of this PR, but do we have a follow-up task, like sunsetting 5.7 support altogether?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For v1.21, we're removing support for MySQL 5.7.
schema/mysql/v8/visibility/versioned/v1.1/advanced_visibility.sql
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just some questions
5a9a71e
to
3f7b1cb
Compare
3f7b1cb
to
ccb725d
Compare
@rodrigozhou Is it possible to remove |
@hiramhuang Sure, not a big deal. PR: #3937 |
What changed?
Added MySQL 8 schemas:
Created base MySQL 8 DB interface. It basically wraps the interface for v57, only overwriting the methods to check the right version.
Added config to start Temporal with MySQL 8 and added respective targets to set it up.
Why?
Advanced visibility with SQL databases.
How did you test it?
Started temporal using MySQL 8, and copied existing unit tests for MySQL to use the new interface.
Potential risks
No.
Is hotfix candidate?
No.