You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Zhenhua (Gerald) Guo (JIRA)" <ji...@apache.org> on 2011/05/12 08:19:47 UTC

[jira] [Updated] (MAPREDUCE-2488) getLocalityLevel returns incorrect result

     [ 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