You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Klaus Ma (JIRA)" <ji...@apache.org> on 2015/09/08 10:46:45 UTC
[jira] [Commented] (MESOS-1187) precision errors with allocation
calculations
[ https://issues.apache.org/jira/browse/MESOS-1187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14734427#comment-14734427 ]
Klaus Ma commented on MESOS-1187:
---------------------------------
As [~jieyu] said, we can NOT use == for double; generally, we will check it by {{abs(a,b) < eps}}. I'll draft a fix for that.
> 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
>
> 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)