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

Joseph Wu commented on MESOS-4018:
----------------------------------

I just saw a test failure due to what seems like a rounding error:
{code}
[ RUN      ] SlaveTest.StateEndpoint
../../src/tests/slave_tests.cpp:1220: Failure
Value of: state.values["start_time"].as<JSON::Number>().as<int>()
  Actual: 1458159086
Expected: static_cast<int>(Clock::now().secs())
  Which is: 1458159085
[  FAILED  ] SlaveTest.StateEndpoint (193 ms)
{code}

> Enhance float-point operation in Mesos
> --------------------------------------
>
>                 Key: MESOS-4018
>                 URL: https://issues.apache.org/jira/browse/MESOS-4018
>             Project: Mesos
>          Issue Type: Epic
>          Components: stout
>            Reporter: Klaus Ma
>            Assignee: Neil Conway
>
> For now, there are several defects about float-point equal checking. This 
> EPIC is used to build float-point operation in {{stout}} for other 
> components. The major operation will be:
> 1. {{bool almostEqual(double left, double right)}} for Scalar {{operator==}}
> 2. {{CHECK_NEAR(left, right)}} for assert in components



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

Reply via email to