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

Race condition in Shell leads to logged error stream handling exceptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0-beta
    • None
    • util
    • None

    Description

      Shell.runCommand starts an error stream handling thread and normally joins with it before closing the error stream. However if parseExecResult throws an exception (e.g.: like Stat.parseExecResult does for FileNotFoundException) then the error thread is not joined and the error stream can be closed before the error stream handling thread is finished. This causes the error stream handling thread to log an exception backtrace for a "normal" situation.

      Attachments

        1. hadoop-9894.01.patch
          0.8 kB
          Arpit Agarwal

        Activity

          People

            arp Arpit Agarwal
            jlowe Jason Darrell Lowe
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: