Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-4903

Remove unused code for reading Shell command stdout and add unit test

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.11.0.0
    • clients
    • None

    Description

      Shell#runCommand does not clear the input buffer where it claims to do so.

                  // clear the input stream buffer
                  String line = null;
                  while (line != null) {
                      line = inReader.readLine();
                  }
       

      The 'while' loop never runs.

      Attachments

        Issue Links

          Activity

            People

              cmccabe Colin McCabe
              cmccabe Colin McCabe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: