You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@crunch.apache.org by "Josh Wills (JIRA)" <ji...@apache.org> on 2013/08/07 20:35:47 UTC

[jira] [Resolved] (CRUNCH-248) SingleUseIterable exceptions mask CrunchRuntimeExceptions thrown in the reducer

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

Josh Wills resolved CRUNCH-248.
-------------------------------

    Resolution: Fixed

Committed to master.
                
> SingleUseIterable exceptions mask CrunchRuntimeExceptions thrown in the reducer
> -------------------------------------------------------------------------------
>
>                 Key: CRUNCH-248
>                 URL: https://issues.apache.org/jira/browse/CRUNCH-248
>             Project: Crunch
>          Issue Type: Bug
>          Components: Core
>            Reporter: Josh Wills
>            Assignee: Josh Wills
>             Fix For: 0.8.0
>
>         Attachments: CRUNCH-248.patch
>
>
> If a DoFn on the reducer throws a CrunchRuntimeException, the record you were processing when the exception was thrown. Since the record is usually some instance of Pair<K, Iterable<V>> and the Iterable is single-use, attempting to write the record to the log causes an exception to be thrown when we try to render the data in the Iterable by calling its iterator() method for the second time.

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