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

ReducingUpsertWriter does not flush the wrapped writer

    XMLWordPrintableJSON

Details

    Description

      According to SinkWriter#flush javadoc, the writer must flush its records to guarantee AT_LEAST_ONCE.

      upsert-kafka's ReducingUpsertWriter inserts buffered records into the wrapped writer, but does not flush it:
      1. SinkWriter#flush implementation - https://github.com/apache/flink/blob/master/flink-connectors/flink-connector-kafka/src/main/java/org/apache/flink/streaming/connectors/kafka/table/ReducingUpsertWriter.java#L88-L91.
      2. The actual flush code - https://github.com/apache/flink/blob/f3c653ed2e4264315ed83a5b4b2494a7dcc41474/flink-connectors/flink-connector-kafka/src/main/java/org/apache/flink/streaming/connectors/kafka/table/ReducingUpsertWriter.java#L143-L150.

      Attachments

        Issue Links

          Activity

            People

              Gerrrr Alex Sorokoumov
              Gerrrr Alex Sorokoumov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: