-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[common] Add Flink 1.15 support. #1504
[common] Add Flink 1.15 support. #1504
Conversation
I've tried to reproduce oceanbase test failure locally and found out this issue: testcontainers/testcontainers-java#5151. In |
The cause of failing my-sql tests can be https://issues.apache.org/jira/browse/FLINK-28861. I've debugged |
d4979f3
to
f9dc004
Compare
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.
Thanks for your contribution. I left some comments.
...main/java/com/ververica/cdc/connectors/mysql/table/MySqlDeserializationConverterFactory.java
Show resolved
Hide resolved
...main/java/com/ververica/cdc/connectors/mysql/table/MySqlDeserializationConverterFactory.java
Show resolved
Hide resolved
...r-mysql-cdc/src/test/java/com/ververica/cdc/connectors/mysql/table/MySqlConnectorITCase.java
Show resolved
Hide resolved
Hi, @ruanhang1993 ! Thanks for comments! I've answered on them, can you recheck PR, please? |
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, thanks for your contribution.
pom.xml
Outdated
<profile> | ||
<id>flink-1.14</id> | ||
<properties> | ||
<flink.version>1.14.4</flink.version> |
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.
Is it required to still have 1.14.x support?
Why just not to update to 1.15.x?
Or otherwise somehow need to guarantee that future changes will not add some 1.15.x specific api which could break 1.14.x usage... It seems currently ci does not check this profile... or did I miss something?
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.
Thanks for your option, @snuyanzin. I have removed this profile to have a try.
@tigrulya-exe I think we should add the test environment in cdc e2e tests to verify the flink version 1.15. |
f9dc004
to
54f5ac2
Compare
pom.xml
Outdated
@@ -71,7 +71,8 @@ under the License. | |||
</distributionManagement> | |||
|
|||
<properties> | |||
<flink.version>1.14.4</flink.version> | |||
<flink.version>1.15.2</flink.version> | |||
<flink.submodule.postfix></flink.submodule.postfix> |
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.
The property is empty?
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.
Yes, the flink 1.15.2 does not need the scala suffix. I will try to remove this config and 1.14 profile.
pom.xml
Outdated
@@ -467,6 +474,14 @@ under the License. | |||
</build> | |||
|
|||
<profiles> | |||
<profile> | |||
<id>flink-1.14</id> |
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.
Why we need this @ruanhang1993 , Could we build a connector base on Flink 1.15 and then run it on Flink 1.14 cluster? I think this is what we want.
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.
I will try to remove 1.14 profile.
e34bd8a
to
1225030
Compare
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.
Thanks @tigrulya-exe and @ruanhang1993 for the contribution, LGTM
when support cdc to elasticsearch 8.x for flink cdc ? |
You can open a issue firstly @CaoYunzhou |
Hello, @ruanhang1993 ! Sorry for late response, but why did we remove maven module for flink 1.14 version? As far as I remember you said in #1363, that we need to support multiple Flink versions - 1.13, 1.14 and 1.15. For this purpose I've added module, because we can't just use new version of cdc with older Flink distributions due to incompatible changes in 1.15. |
Hi, @tigrulya-exe . Sorry for the late response. |
Bumped Flink version to 1.15.1.
Added Maven profile for Flink 1.14 compatibility.
Relates to #1363