Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F0FB555E6 for ; Thu, 12 May 2011 06:20:30 +0000 (UTC) Received: (qmail 24540 invoked by uid 500); 12 May 2011 06:20:30 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 24455 invoked by uid 500); 12 May 2011 06:20:29 -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 24439 invoked by uid 99); 12 May 2011 06:20:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 May 2011 06:20:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 May 2011 06:20:26 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 767D182BD9 for ; Thu, 12 May 2011 06:19:47 +0000 (UTC) Date: Thu, 12 May 2011 06:19:47 +0000 (UTC) From: "Zhenhua (Gerald) Guo (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <1418712475.6016.1305181187481.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2017678953.6014.1305181187403.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (MAPREDUCE-2488) getLocalityLevel returns incorrect result 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-2488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Zhenhua (Gerald) Guo updated MAPREDUCE-2488: -------------------------------------------- Description: This line {{int level = this.maxLevel;}} initializes variable "level" to "this.maxLevel". If the real locality level is larger than maxLevel, the method "getLocalityLevel" always returns "this.maxLevel", which is incorrect. To make it work, I change it {{int level = Integer.MAX_VALUE;}} was: This line {{int level = this.maxLevel;}} initializes variable "level" to "this.maxLevel". If the real locality level is larger than maxLevel, the method "getLocalityLevel" always return "this.maxLevel", which is incorrect. To make it work, I change it {{int level = Integer.MAX_VALUE;}} > getLocalityLevel returns incorrect result > ----------------------------------------- > > Key: MAPREDUCE-2488 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-2488 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: jobtracker > Affects Versions: 0.21.0 > Reporter: Zhenhua (Gerald) Guo > Labels: hadoop > > This line > {{int level = this.maxLevel;}} > initializes variable "level" to "this.maxLevel". If the real locality level is larger than maxLevel, the method "getLocalityLevel" always returns "this.maxLevel", which is incorrect. > To make it work, I change it > {{int level = Integer.MAX_VALUE;}} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira