pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cheolsoo Park (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PIG-3096) Make PigUnit thread safe
Date Mon, 17 Dec 2012 01:32:12 GMT

     [ https://issues.apache.org/jira/browse/PIG-3096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Cheolsoo Park updated PIG-3096:
-------------------------------

    Attachment: PIG-3096.patch

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. 
                
> Make PigUnit thread safe
> ------------------------
>
>                 Key: PIG-3096
>                 URL: https://issues.apache.org/jira/browse/PIG-3096
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.11
>            Reporter: Cheolsoo Park
>            Assignee: Cheolsoo Park
>             Fix For: 0.12
>
>         Attachments: PIG-3096.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message