Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
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
- duplicates
-
FLINK-25184 Introduce setDeliveryCallback to KafkaWriter
- Closed
- links to