[ 
https://issues.apache.org/jira/browse/KAFKA-4903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15926406#comment-15926406
 ] 

ASF GitHub Bot commented on KAFKA-4903:
---------------------------------------

GitHub user cmccabe opened a pull request:

    https://github.com/apache/kafka/pull/2692

    KAFKA-4903: Shell#runCommand does not clear the input buffer

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cmccabe/kafka KAFKA-4903

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/kafka/pull/2692.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2692
    
----

----


> Shell#runCommand does not clear the input buffer
> ------------------------------------------------
>
>                 Key: KAFKA-4903
>                 URL: https://issues.apache.org/jira/browse/KAFKA-4903
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients
>            Reporter: Colin P. McCabe
>            Assignee: Colin P. McCabe
>
> Shell#runCommand does not clear the input buffer where it claims to do so.
> {code}
>             // clear the input stream buffer
>             String line = null;
>             while (line != null) {
>                 line = inReader.readLine();
>             }
>  {code}
> The 'while' loop never runs.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to