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

[Feature][Connector-V2] Dependency conflicts exist in connector-cdc-sqlserver and connector-maxcompute. #6772

Open
3 tasks done
HappyHacker123 opened this issue Apr 28, 2024 · 1 comment

Comments

@HappyHacker123
Copy link

Search before asking

  • I had searched in the feature and found no similar feature requirement.

Description

Problem Description

Currently, seatunnel-connectors-v2/connector-cdc/connector-cdc-sqlserver and seatunnel-connectors-v2/connector-maxcompute is encountering dependency conflicts. Specifically, they contain classes with the same qualified class names in their dependencies as listed below.

Dep org.apache.seatunnel:connector-cdc-sqlserver:2.3.2:
    Pulled in by:   [org.apache.seatunnel:connector-cdc-sqlserver:2.3.2::]
Dep io.debezium:debezium-connector-sqlserver:1.6.4.Final:
    Pulled in by:   [org.apache.seatunnel:connector-cdc-sqlserver:2.3.2:: -> io.debezium:debezium-connector-sqlserver:1.6.4.Final::compile]
Contains Duplicate Classes: 1
    io.debezium.connector.sqlserver.SqlServerStreamingChangeEventSource
----
Dep org.apache.seatunnel:connector-maxcompute:2.3.2:
    Pulled in by:   [org.apache.seatunnel:connector-maxcompute:2.3.2::]
Dep com.aliyun.odps:odps-sdk-commons:0.31.3-public:
    Pulled in by:   [org.apache.seatunnel:connector-maxcompute:2.3.2:: -> com.aliyun.odps:odps-sdk-core:0.31.3-public::compile -> com.aliyun.odps:odps-sdk-commons:0.31.3-public::compile]
Contains Duplicate Classes: 3
    com.aliyun.odps.type.SimpleMapTypeInfo
    com.aliyun.odps.type.SimpleStructTypeInfo
    com.aliyun.odps.type.SimpleArrayTypeInfo
----

The behavior of the Java classloader indictates that when multiple classes with the same fully qualified name exist on the classpath, only one instance of the class will be loaded into memory at runtime. This means that the classes defined here may actually not be loaded, leading to runtime error or semantic conflicts, etc.

Usage Scenario

No response

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@HappyHacker123
Copy link
Author

Could you please take a look at this issue @hailin0 @Carl-Zhou-CN ? many thanks :)

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

No branches or pull requests

1 participant