Hadoop Common
  1. Hadoop Common
  2. HADOOP-8295

ToolRunner.confirmPrompt spins if stdin goes away

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor 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.

        Activity

        Todd Lipcon created issue -

          People

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

            Dates

            • Created:
              Updated:

              Development