hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karthik Kambatla (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-5979) MR1 FairScheduler zero weight can cause sort failures
Date Tue, 22 Jul 2014 23:02:38 GMT

    [ https://issues.apache.org/jira/browse/MAPREDUCE-5979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14071082#comment-14071082
] 

Karthik Kambatla commented on MAPREDUCE-5979:
---------------------------------------------

+1

> MR1 FairScheduler zero weight can cause sort failures
> -----------------------------------------------------
>
>                 Key: MAPREDUCE-5979
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5979
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: scheduler
>    Affects Versions: 1.2.1
>            Reporter: Anubhav Dhoot
>            Assignee: Anubhav Dhoot
>         Attachments: MAPREDUCE-5979.001.patch, MAPREDUCE-5979.002.patch
>
>
> When the weight is set to zero (which is possible with a custom weight adjuster) we can
get failures in comparing schedulables.
> This is because when calculating running tasks to weight ratio could result in a 0.0/0.0
which ends up as NaN. Comparisons with NaN are undefined such that (int)Math.signum(NaN -
anyNumber) will be 0 causing different criteria to be used in comparison which may not be
consistent. This will result in 
> {{IllegalArgumentException: Comparison method violates its general contract!}}
>  



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message