Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-33972 Enhance and synchronize Sink API to match the Source API
  3. FLINK-33973

Add new interfaces for SinkV2 to synchronize the API with the SourceV2 API

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.19.0
    • None
    • Hide
      According to FLIP-372 (https://cwiki.apache.org/confluence/display/FLINK/FLIP-372%3A+Enhance+and+synchronize+Sink+API+to+match+the+Source+API) the SinkV2 API has been changed.

      The following interfaces are deprecated: TwoPhaseCommittingSink, StatefulSink, WithPreWriteTopology, WithPreCommitTopology, WithPostCommitTopology.

      The following new interfaces has been introduced: CommitterInitContext, CommittingSinkWriter, WriterInitContext, StatefulSinkWriter.

      The following interface method's parameter has been changed: Sink.createWriter

      The original interfaces will remain available during the 1.19 release line, but they will be removed in consecutive releases. For the changes required when migrating, please consult the Migration Plan detailed in the FLIP
      Show
      According to FLIP-372 ( https://cwiki.apache.org/confluence/display/FLINK/FLIP-372%3A+Enhance+and+synchronize+Sink+API+to+match+the+Source+API ) the SinkV2 API has been changed. The following interfaces are deprecated: TwoPhaseCommittingSink, StatefulSink, WithPreWriteTopology, WithPreCommitTopology, WithPostCommitTopology. The following new interfaces has been introduced: CommitterInitContext, CommittingSinkWriter, WriterInitContext, StatefulSinkWriter. The following interface method's parameter has been changed: Sink.createWriter The original interfaces will remain available during the 1.19 release line, but they will be removed in consecutive releases. For the changes required when migrating, please consult the Migration Plan detailed in the FLIP

    Description

      Create the new interfaces, set inheritance and deprecation to finalize the interface.
      After this change the new interafaces will exits, but they will not be functional.

      The existing interfaces, and test should be working without issue, to verify that adding the API will be backward compatible.

      Attachments

        Activity

          People

            pvary Peter Vary
            pvary Peter Vary
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: