You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Richard Ding (JIRA)" <ji...@apache.org> on 2011/03/10 01:31:00 UTC

[jira] Updated: (PIG-1874) Make PigServer work in a multithreading environment

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

Richard Ding updated PIG-1874:
------------------------------

    Attachment: PIG-1874.patch

Attaching patch for review.

This patch removed the static variables from PigServer and PigContext classes. It also made UDFContext instance thread local.

To avoid sharing PigContext object, users should use following constructors to create PigServer instance in each thread:

{code}
public PigServer(ExecType execType) throws ExecException;

public PigServer(ExecType execType, Properties properties) throws ExecException;
{code} 

> Make PigServer work in a multithreading environment
> ---------------------------------------------------
>
>                 Key: PIG-1874
>                 URL: https://issues.apache.org/jira/browse/PIG-1874
>             Project: Pig
>          Issue Type: Improvement
>          Components: impl
>    Affects Versions: 0.8.0
>            Reporter: Richard Ding
>            Assignee: Richard Ding
>             Fix For: 0.9.0
>
>         Attachments: PIG-1874.patch
>
>
> This means that PigServers should work if one creates separate PigServer instances for each thread (PigServers are not synchronized). 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira