You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Luke Chen (Jira)" <ji...@apache.org> on 2023/02/24 05:00:00 UTC
[jira] [Created] (KAFKA-14755) improve java-producer-consumer-demo
Luke Chen created KAFKA-14755:
---------------------------------
Summary: 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
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)