Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 32350 invoked from network); 26 Jul 2010 22:14:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Jul 2010 22:14:42 -0000 Received: (qmail 85893 invoked by uid 500); 26 Jul 2010 22:14:42 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 85783 invoked by uid 500); 26 Jul 2010 22:14:41 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 85775 invoked by uid 99); 26 Jul 2010 22:14:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jul 2010 22:14:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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, 26 Jul 2010 22:14:38 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6QMEH1S025011 for ; Mon, 26 Jul 2010 22:14:17 GMT Message-ID: <1404050.9641280182457017.JavaMail.jira@thor> Date: Mon, 26 Jul 2010 18:14:17 -0400 (EDT) From: "Doug Cutting (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Updated: (HADOOP-6881) The efficient comparators aren't always used except for BytesWritable and Text In-Reply-To: <28363686.3111280170396575.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-6881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Doug Cutting updated HADOOP-6881: --------------------------------- Status: Open (was: Patch Available) > The efficient comparators aren't always used except for BytesWritable and Text > ------------------------------------------------------------------------------ > > Key: HADOOP-6881 > URL: https://issues.apache.org/jira/browse/HADOOP-6881 > Project: Hadoop Common > Issue Type: Bug > Affects Versions: 0.20.0 > Reporter: Owen O'Malley > Assignee: Owen O'Malley > Fix For: 0.20.3 > > Attachments: h-6881.patch, HADOOP-6881.patch, HADOOP-6881.patch > > > When we moved from Java 4 to Java 5 (and then 6), there was a change in the JVM semantics such that references to a class such as IntWritable.class no longer forces initialization. Since all of the Writables depend on their class static blocks to register their fast comparators, that can happen *after* we look up the comparator. In that case, the framework will fall back to the generic comparator that deserializes both keys and does the object compare, which may cause a huge slow down in the sort. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.