You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2020/11/26 03:53:00 UTC
[jira] [Assigned] (KAFKA-10565) Console producer displays
interactive prompt even when input is not interactive
[ https://issues.apache.org/jira/browse/KAFKA-10565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chia-Ping Tsai reassigned KAFKA-10565:
--------------------------------------
Assignee: Tom Bentley
> Console producer displays interactive prompt even when input is not interactive
> -------------------------------------------------------------------------------
>
> Key: KAFKA-10565
> URL: https://issues.apache.org/jira/browse/KAFKA-10565
> Project: Kafka
> Issue Type: Bug
> Components: tools
> Affects Versions: 2.6.0
> Reporter: Sergei Morozov
> Assignee: Tom Bentley
> Priority: Minor
>
> The prompt introduced in KAFKA-2955 may be indeed helpful when a user enters messages manually but when the messages are read from a file, it's not helpful and may be really annoying.
> h5. Steps to reproduce
> # Create a file with a decent number of messages (e.g. 80,000 in my case)
> # Start console producer and forward the file contents to its STDIN:
> {noformat}
> $ kafka-console-producer --broker-list b1,b2,b3 --topic test < messages.txt
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ... >>>>>>>>>>>>>>
> {noformat}
> For each message the producer reads from the file, there's one > displayed polluting the output.
> h5. Expected behavior:
> # If the producer can detect that the input stream is a TTY, it should not display the prompt.
> # Ideally, there should be a configuration parameter to disable this explicitly.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)