Return-Path: X-Original-To: apmail-crunch-dev-archive@www.apache.org Delivered-To: apmail-crunch-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B652210FB1 for ; Wed, 7 Aug 2013 18:35:51 +0000 (UTC) Received: (qmail 28732 invoked by uid 500); 7 Aug 2013 18:35:51 -0000 Delivered-To: apmail-crunch-dev-archive@crunch.apache.org Received: (qmail 28547 invoked by uid 500); 7 Aug 2013 18:35:50 -0000 Mailing-List: contact dev-help@crunch.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@crunch.apache.org Delivered-To: mailing list dev@crunch.apache.org Received: (qmail 28502 invoked by uid 500); 7 Aug 2013 18:35:48 -0000 Delivered-To: apmail-incubator-crunch-dev@incubator.apache.org Received: (qmail 28492 invoked by uid 99); 7 Aug 2013 18:35:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Aug 2013 18:35:48 +0000 Date: Wed, 7 Aug 2013 18:35:47 +0000 (UTC) From: "Josh Wills (JIRA)" To: crunch-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CRUNCH-248) SingleUseIterable exceptions mask CrunchRuntimeExceptions thrown in the reducer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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> 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