You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Sergei Morozov (Jira)" <ji...@apache.org> on 2020/10/01 23:06:00 UTC

[jira] [Created] (KAFKA-10565) Console producer displays interactive prompt even when input is not interactive

Sergei Morozov created KAFKA-10565:
--------------------------------------

             Summary: 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


The prompt introduced in KAFKA-2955 may be indeed helpful when a user enters messages manually but when the messages are read from the 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:

{{$ kafka-console-producer \}}
{{  --broker-list b1,b2,b3 \}}
{{  --topic test < messages.txt}}

{{>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ... >>>>>>>>>>>>>>}}

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)