Gera Shegalov created YARN-12007:
------------------------------------
Summary: YARN unit conversion can overflow even when the final
value fits
Key: YARN-12007
URL: https://issues.apache.org/jira/browse/YARN-12007
Project: Hadoop YARN
Issue Type: Bug
Components: ATSv2
Reporter: Gera Shegalov
`UnitsConversionUtil` uses long arithmetic for intermediate calculations. Those
calculations can overflow or trigger an error even when the correct converted
value fits in a long.
For example:
* convert("p", "G", Long.MAX_VALUE) can return 2; the correct whole-number
result is 0.
* convert("P", "Pi", 10000) throws an overflow error; the correct result is
8881.
This can affect custom-resource values throughout YARN, including values read
from timeline history by YARN-11995.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]