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

FlinkKafkaProducer09 sink can lose messages

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.0.3
    • 1.1.0
    • Connectors / Kafka
    • None

    Description

      The FlinkKafkaProducer09 sink appears to not offer at-least-once guarantees.

      The producer is publishing messages asynchronously. A callback can record publishing errors, which will be raised when detected. But as far as I can tell, there is no barrier to wait for async errors from the sink when checkpointing or to track the event time of acked messages to inform the checkpointing process.

      If a checkpoint occurs while there are pending publish requests, and the requests return a failure after the checkpoint occurred, those message will be lost as the checkpoint will consider them processed by the sink.

      Attachments

        Issue Links

          Activity

            People

              rmetzger Robert Metzger
              elevy Elias Levy
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: