You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Jonathan Coveney (JIRA)" <ji...@apache.org> on 2012/09/21 23:36:08 UTC

[jira] [Updated] (PIG-2833) org.apache.pig.pigunit.pig.PigServer does not initialize set default log level of pigContext

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

Jonathan Coveney updated PIG-2833:
----------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)
    
> org.apache.pig.pigunit.pig.PigServer does not initialize set default log level of pigContext
> --------------------------------------------------------------------------------------------
>
>                 Key: PIG-2833
>                 URL: https://issues.apache.org/jira/browse/PIG-2833
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.10.0
>         Environment: pig-0.10.0, Hadoop 2.0.0-cdh4.0.1 on Kubuntu 12.04 64Bit.
>            Reporter: Johannes Schwenk
>            Assignee: Cheolsoo Park
>         Attachments: PIG-2833.patch
>
>
> The class org.apache.pig.pigunit.pig.PigServer does not set the default log level of its instance of PigContext so that pigunit tests that have 
> {code}
> set debug off;
> {code}
> in them, will cause a NullPointerException at org.apache.pig.PigServer line 291 because the default log level is not set.
> So I think org.apache.pig.pigunit.pig.PigServer should do something like 
> {code}
> pigContext.setDefaultLogLevel(Level.INFO);
> {code}
> in its contructors.

--
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