Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 98271 invoked from network); 5 Jun 2008 17:42:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jun 2008 17:42:11 -0000 Received: (qmail 26807 invoked by uid 500); 5 Jun 2008 17:42:11 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 26771 invoked by uid 500); 5 Jun 2008 17:42:11 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 26760 invoked by uid 99); 5 Jun 2008 17:42:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 10:42:11 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jun 2008 17:41:23 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1E9B2234C138 for ; Thu, 5 Jun 2008 10:41:45 -0700 (PDT) Message-ID: <828968432.1212687705124.JavaMail.jira@brutus> Date: Thu, 5 Jun 2008 10:41:45 -0700 (PDT) From: "Tsz Wo (Nicholas), SZE (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-3442) QuickSort may get into unbounded recursion In-Reply-To: <1674516953.1211579516126.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-3442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12602722#action_12602722 ] Tsz Wo (Nicholas), SZE commented on HADOOP-3442: ------------------------------------------------ One possible bug causing this problem is integer overflow: for example, {code} fix(s, (p+r) >>> 1, p); {code} if p+r > Integer.MAX_VALUE, then the result won't be correct. This leads to a question: do we need long for the index? > QuickSort may get into unbounded recursion > ------------------------------------------ > > Key: HADOOP-3442 > URL: https://issues.apache.org/jira/browse/HADOOP-3442 > Project: Hadoop Core > Issue Type: Bug > Components: mapred > Affects Versions: 0.17.0 > Reporter: Runping Qi > Assignee: Chris Douglas > Attachments: 3442-0.patch, 3442-0v17.patch, CheckSortBuffer.java, HADOOP-3442.patch, overflow.zip, spillbuffers.patch > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.