Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-5226

PreprocessorContext.java can deadlock forever with large stderr

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.17.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      This code can deadlock on *nix (not sure about Windows...) because of how it's using Runtime.exec() (ie, stderr fills up its buffer and everything hangs).

      Problematic snippet of code:
      https://github.com/apache/pig/blob/38c835ed702799f69dc2fa1ad0fbeab25e42c111/src/org/apache/pig/tools/parameters/PreprocessorContext.java#L238-L272

        Attachments

        1. pig-runtime-exec-1.patch
          7 kB
          Jacob Tolar
        2. pig-runtime-exec.patch
          6 kB
          Jacob Tolar

          Issue Links

            Activity

              People

              • Assignee:
                jtolar Jacob Tolar
                Reporter:
                jtolar Jacob Tolar
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: