You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Santhosh Srinivasan (JIRA)" <ji...@apache.org> on 2012/12/27 03:28:12 UTC

[jira] [Commented] (PIG-3066) Fix TestPigRunner in trunk

    [ https://issues.apache.org/jira/browse/PIG-3066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13539799#comment-13539799 ] 

Santhosh Srinivasan commented on PIG-3066:
------------------------------------------

+1
                
> Fix TestPigRunner in trunk
> --------------------------
>
>                 Key: PIG-3066
>                 URL: https://issues.apache.org/jira/browse/PIG-3066
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.12
>            Reporter: Cheolsoo Park
>            Assignee: Cheolsoo Park
>             Fix For: 0.12
>
>         Attachments: PIG-3066.patch
>
>
> This is a regression from PIG-2924. The size of output in PigStats used to be off by 1 byte per store, but that was fixed by PIG-2924. However, two test cases in {{TestPigRunner}} wasn't corrected, so they fail in trunk.
> The reason why the size of output in PigStats were off by 1 byte per store is because the size variable was initialized by -1 instead of 0.
> {code}
> long bytes = -1;
> ...
> bytes += status.getLen();
> ...
> {code}

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