[
https://issues.apache.org/jira/browse/PIG-3988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14021025#comment-14021025
]
Cheolsoo Park commented on PIG-3988:
------------------------------------
+1. Thank you for the patch!
[~tmwoodruff], do you mind committing this patch into 0.14 instead of 0.13?
Given we're in the middle of release process, I'd like to avoid any commit into
0.13 except test failures and critical bug fixes.
> PigStorage: CommandLineParser is not thread safe
> ------------------------------------------------
>
> Key: PIG-3988
> URL: https://issues.apache.org/jira/browse/PIG-3988
> Project: Pig
> Issue Type: Bug
> Affects Versions: 0.13.0
> Reporter: Travis Woodruff
> Assignee: Travis Woodruff
> Priority: Minor
> Fix For: 0.13.0
>
> Attachments: PIG-3988-1.patch
>
>
> PigStorage uses commons-cli to parse options. The CommandLineParser is stored
> as a static member. This can cause issues when two threads instantiate
> PigStorage at the same time, since CommandLineParser stores state in a
> non-thread-safe way.
> OptionBuilder, used in populateValidOptions(), is also not thread safe, as it
> stores its state in static members.
--
This message was sent by Atlassian JIRA
(v6.2#6252)