You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Johannes Schwenk (JIRA)" <ji...@apache.org> on 2012/07/20 18:31:35 UTC
[jira] [Created] (PIG-2833) org.apache.pig.pigunit.pig.PigServer
does not initialize set default log level of pigContext
Johannes Schwenk created PIG-2833:
-------------------------------------
Summary: 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
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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (PIG-2833) org.apache.pig.pigunit.pig.PigServer
does not initialize set default log level of pigContext
Posted by "Jonathan Coveney (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Assigned] (PIG-2833) org.apache.pig.pigunit.pig.PigServer
does not initialize set default log level of pigContext
Posted by "Cheolsoo Park (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cheolsoo Park reassigned PIG-2833:
----------------------------------
Assignee: Cheolsoo Park
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (PIG-2833) org.apache.pig.pigunit.pig.PigServer
does not initialize set default log level of pigContext
Posted by "Jonathan Coveney (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13460834#comment-13460834 ]
Jonathan Coveney commented on PIG-2833:
---------------------------------------
Thanks for the contribution, Cheolsoo! Committed to trunk.
> 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
[jira] [Updated] (PIG-2833) org.apache.pig.pigunit.pig.PigServer
does not initialize set default log level of pigContext
Posted by "Cheolsoo Park (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cheolsoo Park updated PIG-2833:
-------------------------------
Attachment: PIG-2833.patch
Attached is a patch that initializes the default log level of PigContext to Level.INFO.
I also added two test cases to TestGrunt to verify "set debug on/off" work properly.
> 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
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (PIG-2833) org.apache.pig.pigunit.pig.PigServer
does not initialize set default log level of pigContext
Posted by "Johannes Schwenk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13420666#comment-13420666 ]
Johannes Schwenk commented on PIG-2833:
---------------------------------------
Thank you very much for your quick reaction, Cheolsoo! Could you also have a look at PIG-2832 which might be a similar issue?
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (PIG-2833) org.apache.pig.pigunit.pig.PigServer
does not initialize set default log level of pigContext
Posted by "Cheolsoo Park (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-2833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cheolsoo Park updated PIG-2833:
-------------------------------
Status: Patch Available (was: Open)
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira