Meng Zhu created MESOS-9227:
-------------------------------
Summary: `Value::Scalar` cannot handle large floating point
calculation due to fixed point conversion.
Key: MESOS-9227
URL: https://issues.apache.org/jira/browse/MESOS-9227
Project: Mesos
Issue Type: Bug
Reporter: Meng Zhu
While `scalar` holds a `double`, internally we convert floating point to fixed
point to ensure only three decimal digits:
https://github.com/apache/mesos/blob/851ec9c5dca672ed4efc77545c86121463695e4f/src/common/values.cpp#L48-L53
And all internal arithmetic calculations are done using `long long`, e.g.:
https://github.com/apache/mesos/blob/851ec9c5dca672ed4efc77545c86121463695e4f/src/common/values.cpp#L123-L128
This has the unexpected consequence of the inability to handle large values.
One impacted use case we are seeing is with exabytes of disks. This will
overflow the fixed point representation.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)