Return-Path: Delivered-To: apmail-avro-dev-archive@www.apache.org Received: (qmail 83883 invoked from network); 14 Jun 2010 22:14:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Jun 2010 22:14:38 -0000 Received: (qmail 97423 invoked by uid 500); 14 Jun 2010 22:14:38 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 97369 invoked by uid 500); 14 Jun 2010 22:14:37 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 97361 invoked by uid 99); 14 Jun 2010 22:14:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jun 2010 22:14:37 +0000 X-ASF-Spam-Status: No, hits=-1519.6 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jun 2010 22:14:36 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5EMEGNd001716 for ; Mon, 14 Jun 2010 22:14:16 GMT Message-ID: <33551688.87411276553656168.JavaMail.jira@thor> Date: Mon, 14 Jun 2010 18:14:16 -0400 (EDT) From: "Scott Carey (JIRA)" To: dev@avro.apache.org Subject: [jira] Commented: (AVRO-513) java mapreduce api should pass iterator of matching objects to reduce 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/AVRO-513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12878775#action_12878775 ] Scott Carey commented on AVRO-513: ---------------------------------- bq. Not sure about an interrupt signal being intercepted, or not being delivered. But I think it's possible that the interrupt occurs between the check on "done" and the call to take(), so the call to take() would go ahead and cause a deadlock. I think all Java blocking I/O and queue operations check the interrupted status on the thread before sleeping/waiting. Or more precisely --the JVM checks it before the thread yields, and will throw the interrupted exception if the flag is set. > java mapreduce api should pass iterator of matching objects to reduce > --------------------------------------------------------------------- > > Key: AVRO-513 > URL: https://issues.apache.org/jira/browse/AVRO-513 > Project: Avro > Issue Type: Improvement > Components: java > Reporter: Doug Cutting > Assignee: Doug Cutting > Fix For: 1.4.0 > > Attachments: AVRO-513.patch, AVRO-513.patch > > > The Java mapreduce API added in AVRO-493 requires reducers implementations to explicitly detect sequences of matching data. > Rather the reduce method might better look something like: > void reduce(Iterator, Collector); > Where all equal values are passed in a single call. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.