Return-Path: X-Original-To: apmail-incubator-crunch-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-crunch-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7F1BCE2B0 for ; Thu, 31 Jan 2013 14:23:31 +0000 (UTC) Received: (qmail 66134 invoked by uid 500); 31 Jan 2013 14:23:30 -0000 Delivered-To: apmail-incubator-crunch-dev-archive@incubator.apache.org Received: (qmail 61440 invoked by uid 500); 31 Jan 2013 14:23:18 -0000 Mailing-List: contact crunch-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: crunch-dev@incubator.apache.org Delivered-To: mailing list crunch-dev@incubator.apache.org Received: (qmail 59870 invoked by uid 99); 31 Jan 2013 14:23:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jan 2013 14:23:14 +0000 Date: Thu, 31 Jan 2013 14:23:14 +0000 (UTC) From: "Josh Wills (JIRA)" To: crunch-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CRUNCH-158) Make the initialization of DoFns in the in-memory impl consistent and have it support Counters 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-158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Josh Wills resolved CRUNCH-158. ------------------------------- Resolution: Fixed Fix Version/s: 0.5.0 Committed. > Make the initialization of DoFns in the in-memory impl consistent and have it support Counters > ---------------------------------------------------------------------------------------------- > > Key: CRUNCH-158 > URL: https://issues.apache.org/jira/browse/CRUNCH-158 > Project: Crunch > Issue Type: Improvement > Components: Core > Affects Versions: 0.4.0 > Reporter: Josh Wills > Assignee: Josh Wills > Fix For: 0.5.0 > > Attachments: CRUNCH-158.patch > > > There is a discrepancy between how parallelDo initializes a DoFn for creating PCollections vs. PTables in the MemCollection implementation: we should be sure that we should initialize the methods consistently via calling setContext once and-only-once in each method. > Fixing this also requires adding support for counters in the in-memory impl so that some tests in crunch-contrib don't fail. -- 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