Fix test failure with double operation precision#88803
Conversation
|
Pinging @elastic/es-core-infra (Team:Core/Infra) |
|
@mark-vieira I assigned you as reviewer, but feel free to tell me if you would like me to assign someone else. Thanks |
|
Did you manage to reproduce the failure? It doesn't reproduce for me, and indeed the test seems pretty solid even after 100k+ iterations. |
Yes it reproduces for me. @DaveCTurner Did you remove the @AwaitsFix flag? Feel free to review this if you'd like. It relates to double rounding errors like the one we saw in #88683 . In the original function I adapted (see https://github.com/elastic/elasticsearch/pull/88719/files#diff-4295fc3ce1dcb006cead63e125db2910d0c53cecf7ed2e184e4dc07bd569385a ), @henningandersen used the percentage instead of ratio, for possibly the exact same reason. That's why I thought of using the same and indeed it fixed the rounding issue here. |
DaveCTurner
left a comment
There was a problem hiding this comment.
Did you remove the @AwaitsFix flag?
🤦
Got it now. LGTM
Fixes #88791