[
https://issues.apache.org/jira/browse/FLINK-11320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Flink Jira Bot updated FLINK-11320:
-----------------------------------
Labels: auto-deprioritized-major pull-request-available stale-minor (was:
auto-deprioritized-major pull-request-available)
I am the [Flink Jira Bot|https://github.com/apache/flink-jira-bot/] and I help
the community manage its development. I see this issues has been marked as
Minor but is unassigned and neither itself nor its Sub-Tasks have been updated
for 180 days. I have gone ahead and marked it "stale-minor". If this ticket is
still Minor, please either assign yourself or give an update. Afterwards,
please remove the label or in 7 days the issue will be deprioritized.
> Support user callback in Kafka sink
> -----------------------------------
>
> Key: FLINK-11320
> URL: https://issues.apache.org/jira/browse/FLINK-11320
> Project: Flink
> Issue Type: Improvement
> Components: Connectors / Kafka
> Reporter: Allen Wang
> Priority: Minor
> Labels: auto-deprioritized-major, pull-request-available,
> stale-minor
> Time Spent: 40m
> Remaining Estimate: 0h
>
> We would like to get notified when Flink's Kafka sink successfully produces a
> message to the Kafka cluster for message tracing purposes. The callback
> should be created for the specific item being produced. Currently this
> functionality is inside Flink's internal code and not accessible to the user.
> This change would allow user to get callback when a message is produced in
> the sink:
> * Add a new interface {{UserCallbackFactory}}:
> {code:java}
> public interface UserCallbackFactory<IN> {
> Callback create(IN next);
> }{code}
> * Add new constructor in {{FlinkKafkaProducer}} to pass in an optional
> argument of {{UserCallbackFactory}}
> * In the {{FlinkKafkaProducer.invoke}} method, create a user callback given
> the produced item and invoke this callback.
>
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)