Skip to content

[Bug] Jackson version conflicts among MySQL/TiDB/MongoDB connectors #2983

@link3280

Description

@link3280

Search before asking

  • I searched in the issues and found nothing similar.

Flink version

1.14

Flink CDC version

3.0.0

Database and its version

MySQL 5.7

Minimal reproduce step

Put flink-sql-connector-tidb-cdc-3.0.0.jar, flink-sql-connector-mysql-cdc-3.0.0.jar and flink-sql-connector-mongodb-cdc-3.0.0.jar into lib folder at Flink home (Flink 1.14 in my case), then create a MySQL CDC table and submit a simple query like select * from mysql_cdc_table, there would be an error:

java.io.InvalidClassException: com.ververica.cdc.connectors.shaded.com.fasterxml.jackson.databind.cfg.MapperConfig; incompatible types for field _mapperFeatures

It's caused by inconsistent jackson versions of the CDC connectors:

  • flink-sql-connector-mongodb-cdc-3.0.0.jar: 2.10.2
  • flink-sql-connector-mysql-cdc-3.0.0.jar: 2.13.2
  • flink-sql-connector-tidb-cdc-3.0.0.jar: 2.12.3

What did you expect to see?

All CDC connectors use the same jackson version.

What did you see instead?

Inconsistent jackson versions among the CDC connectors which conflicts with each other.

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions