Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-36541

Occasional met commit conflict problem in PaimonSink.

    XMLWordPrintableJSON

Details

    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.

      Attachments

        Activity

          People

            kunni Yanquan Lv
            kunni Yanquan Lv
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: