[ https://issues.apache.org/jira/browse/KAFKA-10565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chia-Ping Tsai resolved KAFKA-10565. ------------------------------------ Fix Version/s: 2.8.0 Resolution: Fixed > 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 > Fix For: 2.8.0 > > > 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)