Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.11
    • Fix Version/s: 0.12.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently, PigUnit is not thread-safe because Cluster and PigServer are declared as static. Converting them to ThreadLocal allows PigUnit to run in multi-threaded environment.

      1. PIG-3096.patch
        4 kB
        Cheolsoo Park

        Issue Links

          Activity

          Hide
          Cheolsoo Park added a comment -

          Attached is a patch that does the following:

          • Convert Cluster and PigServer to ThreadLocal
          • Randomize the destination of input file in the cluster so that input files don't conflict when multiple jobs run in parallel.
          Show
          Cheolsoo Park added a comment - Attached is a patch that does the following: Convert Cluster and PigServer to ThreadLocal Randomize the destination of input file in the cluster so that input files don't conflict when multiple jobs run in parallel.
          Hide
          Bill Graham added a comment -

          +1 lgtm.

          Show
          Bill Graham added a comment - +1 lgtm.
          Hide
          Cheolsoo Park added a comment -

          Thanks Bill for reviewing it.

          I committed it to trunk.

          Show
          Cheolsoo Park added a comment - Thanks Bill for reviewing it. I committed it to trunk.

            People

            • Assignee:
              Cheolsoo Park
              Reporter:
              Cheolsoo Park
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development