Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8295

ToolRunner.confirmPrompt spins if stdin goes away

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      Currently, ToolRunner.confirmPrompt treats a "-1" response to its System.in.read() call the same as \n or \r. So, if stdin goes away, it can cause the JVM to spin in a loop. Instead, it should treat a -1 result as a "n" response.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tlipcon Todd Lipcon
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: