Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 48384 invoked from network); 30 Dec 2009 21:11:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Dec 2009 21:11:18 -0000 Received: (qmail 47650 invoked by uid 500); 30 Dec 2009 21:11:18 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 47589 invoked by uid 500); 30 Dec 2009 21:11:18 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 47520 invoked by uid 99); 30 Dec 2009 21:10:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Dec 2009 21:10:56 +0000 X-ASF-Spam-Status: No, hits=-10.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SUBJECT_FUZZY_TION X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Dec 2009 21:10:49 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6A63A234C045 for ; Wed, 30 Dec 2009 13:10:29 -0800 (PST) Message-ID: <1179573869.1262207429430.JavaMail.jira@brutus.apache.org> Date: Wed, 30 Dec 2009 21:10:29 +0000 (UTC) From: "Tom White (JIRA)" To: mapreduce-issues@hadoop.apache.org Subject: [jira] Commented: (MAPREDUCE-1287) HashPartitioner calls hashCode() when there is only 1 reducer In-Reply-To: <857809324.1260392238318.JavaMail.jira@brutus> 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/MAPREDUCE-1287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12795447#action_12795447 ] Tom White commented on MAPREDUCE-1287: -------------------------------------- Any reason that the old partitioner uses {{1 - numPartitions}} and the new one uses {{partitions - 1}}? It shouldn't make any difference since the partitioner is not actually used in the zero partition case, but it would be good to make the code consistent. > Clearly, any application that depends on the partitioner for correctness can be rewritten, but is it worth calling out? I think so - put a comment in the release notes. > HashPartitioner calls hashCode() when there is only 1 reducer > ------------------------------------------------------------- > > Key: MAPREDUCE-1287 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-1287 > Project: Hadoop Map/Reduce > Issue Type: Improvement > Affects Versions: 0.22.0 > Reporter: Ed Mazur > Assignee: Ed Mazur > Priority: Minor > Fix For: 0.22.0 > > Attachments: M1287-4.patch, MAPREDUCE-1287.2.patch, MAPREDUCE-1287.3.patch, MAPREDUCE-1287.patch > > > HashPartitioner could be optimized to not call the key's hashCode() if there is only 1 reducer. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.