You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Jie Yu (JIRA)" <ji...@apache.org> on 2015/06/24 23:48:05 UTC

[jira] [Reopened] (MESOS-1187) precision errors with allocation calculations

     [ https://issues.apache.org/jira/browse/MESOS-1187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jie Yu reopened MESOS-1187:
---------------------------

I was able to reproduce.

0.1 + 0.1 + 0.1 - 0.1 - 0.1 = 0.09999999999999892 < 0.1

That would cause issues if the code relies on the fact that

0.1 + 0.1 + 0.1 - 0.1 - 0.1 == 0.1

> precision errors with allocation calculations
> ---------------------------------------------
>
>                 Key: MESOS-1187
>                 URL: https://issues.apache.org/jira/browse/MESOS-1187
>             Project: Mesos
>          Issue Type: Bug
>          Components: allocation, master
>            Reporter: aniruddha sathaye
>            Priority: Minor
>
> As allocations are stored/transmitted as doubles many a times precision errors creep in. 
> we have seen erroneous share calculations happen only because of floating point arithmetic. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)