Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
cdc-3.2.0
Description
When writing records to Paimon, we occasional met commit conflict problem even if Parallelism is 1.
It turns out that PaimonWriter preparecommit Committable with a checkpointId which is always 1, as the following code:
https://github.com/apache/flink-cdc/blob/a1781f432d906fa2a864642a5f74ac5bdc963d9c/flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-paimon/src/main/java/org/apache/flink/cdc/connectors/paimon/sink/v2/PaimonWriter.java#L164-L178
This is actually an incorrect usage, we must pass in an increasing ID to ensure the correctness of the snapshot information.