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

KafkaSink: when init transaction, it take too long to get a producerId with epoch=0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.14.4
    • None
    • Connectors / Kafka
    • None
    • Important

    Description

      as we can see, the new KafkaSink aborts all transactions that have been created by a subtask in a previous run, only return when get a producerId was unused before(epoch=0). But this can take a long time, especially if the task has been started and cancelled many times before. In my tests, it even took 10 minutes. Is there a better way to solve this problem, or do what FlinkKafkaProducer did.

      Attachments

        1. image-2022-04-20-17-34-48-207.png
          362 kB
          Zhengqi Zhang
        2. image-2022-04-20-17-59-27-397.png
          232 kB
          Zhengqi Zhang
        3. image-2022-05-01-16-50-27-264.png
          82 kB
          Zhengqi Zhang

        Activity

          People

            Unassigned Unassigned
            Tony Giao Zhengqi Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: