You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Federico Valeri (Jira)" <ji...@apache.org> on 2023/02/24 07:06:00 UTC

[jira] [Assigned] (KAFKA-14755) improve java-producer-consumer-demo

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

Federico Valeri reassigned KAFKA-14755:
---------------------------------------

    Assignee: Federico Valeri

> improve java-producer-consumer-demo
> -----------------------------------
>
>                 Key: KAFKA-14755
>                 URL: https://issues.apache.org/jira/browse/KAFKA-14755
>             Project: Kafka
>          Issue Type: Sub-task
>            Reporter: Luke Chen
>            Assignee: Federico Valeri
>            Priority: Major
>
> while running both the examples, I saw flood of logs output because we print one line for message sent, and one line for message received. In java-producer-consumer-demo, there will be 10000 records sent/received, so > 20000 lines of logs output. Same for exactly-once-demo. Maybe we should consider to reduce the record number.
>  
> One more thing, in exactly-once-demo.java, there are clear class java doc in the demo file, but there's nothing in java-producer-consumer-demo.java. We should also improve that.
>  
> Lastly, the main thread in java-producer-consumer-demo won't exit if timed out waiting for demo producer and consumer to finish. You'll see exception thrown, but the application keeps waiting there.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)