You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Flink Jira Bot (Jira)" <ji...@apache.org> on 2022/01/03 10:40:00 UTC

[jira] [Updated] (FLINK-24490) The sample code is wrong in Apache Kafka Connector page

     [ https://issues.apache.org/jira/browse/FLINK-24490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Flink Jira Bot updated FLINK-24490:
-----------------------------------
    Labels: pull-request-available stale-assigned  (was: 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 issue is assigned but has not received an update in 30 days, so it has been labeled "stale-assigned".
If you are still working on the issue, please remove the label and add a comment updating the community on your progress.  If this issue is waiting on feedback, please consider this a reminder to the committer/reviewer. Flink is a very active project, and so we appreciate your patience.
If you are no longer working on the issue, please unassign yourself so someone else may work on it.


> The sample code is wrong in Apache Kafka Connector page
> -------------------------------------------------------
>
>                 Key: FLINK-24490
>                 URL: https://issues.apache.org/jira/browse/FLINK-24490
>             Project: Flink
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 1.14.0
>            Reporter: JasonLee
>            Assignee: JasonLee
>            Priority: Minor
>              Labels: pull-request-available, stale-assigned
>             Fix For: 1.14.0
>
>
> There is a sample code error in the kafka sink part
> {code:java}
> // code placeholder
> KafkaSink<String> sink = KafkaSink.<String>builder()
>         .setBootstrapServers(brokers)
>         .setRecordSerializer(KafkaRecordSerializationSchema.builder()
>             .setTopic("topic-name")
>             .setValueSerializationSchema(new SimpleStringSchema())
>             .setDeliveryGuarantee(DeliveryGuarantee.AT_LEAST_ONCE)
>             .build()
>         )
>         .build();
> {code}
> The correct wording should be as follows
> {code:java}
> // code placeholder
> KafkaSink<String> sink = KafkaSink.<String>builder()                                                                                                
>        .setBootstrapServers(brokers)                   
>        .setRecordSerializer(KafkaRecordSerializationSchema.builder() 
>              .setTopic("topic-name")
>              .setValueSerializationSchema(new SimpleStringSchema()) 
>              .build() 
>         )
>         .setDeliverGuarantee(DeliveryGuarantee.AT_LEAST_ONCE)
>         .build();
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)