XMLWordPrintableJSON

Details

    Description

      In Table Store, we want to get the offsets of kafka writer, only the offset returned by the callback inside the KafkaWriter is accurate, so we need this callback mechanism.

      This ticket wants to add metadataConsumer to InitContext in Sink:

      /**
       * Returns a metadata consumer, the {@link SinkWriter} can publish metadata events of type
       * {@link MetaT} to the consumer. The consumer can accept metadata events in an asynchronous
       * thread, and the {@link Consumer#accept} method is executed very fast.
       */
      default <MetaT> Optional<Consumer<MetaT>> metadataConsumer() {
          return Optional.empty();
      }

      SinkWriter can get this consumer, and publish metadata to the consumer implemented by table store sink.

      Attachments

        Issue Links

          Activity

            People

              lzljs3620320 Jingsong Lee
              lzljs3620320 Jingsong Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: