← All tasks
javaapache/flink-cdc #2983Not a task: not reproduced

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

envgap__apache__flink-cdc-2983

01 / FAILURE SIGNATURE

As reported upstream

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:
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
aa9e91ce4599d8c5a51df82cea4e31aed7d2f634
Manifest
pom.xml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

apache/flink-cdc #2983 · read the original issue
### Search before asking

- [X] I searched in the [issues](https://github.com/ververica/flink-cdc-connectors/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?

- [X] I'm willing to submit a PR!
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]