You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Stanislav Kozlovski (JIRA)" <ji...@apache.org> on 2018/11/05 19:51:00 UTC
[jira] [Comment Edited] (KAFKA-6812) Async ConsoleProducer exits
with 0 status even after data loss
[ https://issues.apache.org/jira/browse/KAFKA-6812?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16675694#comment-16675694 ]
Stanislav Kozlovski edited comment on KAFKA-6812 at 11/5/18 7:50 PM:
---------------------------------------------------------------------
Hi [~kamalkang] , no progress has been made on this ticket. My last comment about creating a KIP stands - it's a public API change and is needed.
Feel free to reassign this issue ticket to yourself and start work on it - it would be appreciated by the community :)
was (Author: enether):
Hi [~kamalkang] , no progress has been made on this ticket. My last comment stands, I presume, about creating a KIP - it's a public API change.
Feel free to reassign this issue ticket to yourself and start work on it - it would be appreciated by the community :)
> Async ConsoleProducer exits with 0 status even after data loss
> --------------------------------------------------------------
>
> Key: KAFKA-6812
> URL: https://issues.apache.org/jira/browse/KAFKA-6812
> Project: Kafka
> Issue Type: Bug
> Components: tools
> Affects Versions: 1.1.0
> Reporter: Andras Beni
> Assignee: Stanislav Kozlovski
> Priority: Minor
>
> When {{ConsoleProducer}} is run without {{--sync}} flag and one of the batches times out, {{ErrorLoggingCallback}} logs the error:
> {code:java}
> 18/04/21 04:23:01 WARN clients.NetworkClient: [Producer clientId=console-producer] Connection to node 10 could not be established. Broker may not be available.
> 18/04/21 04:23:02 ERROR internals.ErrorLoggingCallback: Error when sending message to topic my-topic with key: null, value: 8 bytes with error:
> org.apache.kafka.common.errors.TimeoutException: Expiring 1 record(s) for my-topic-0: 1530 ms has passed since batch creation plus linger time{code}
> However, the tool exits with status code 0.
> In my opinion the tool should indicate in the exit status that there was data lost. Maybe it's reasonable to exit after the first error.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)