New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FLINK-13450][test] Adjust tests to tolerate arithmetic differences between x86 and ARM #9681
Conversation
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit 537669f (Wed Dec 04 21:54:02 UTC 2019) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution @wangxiyuan! I think this pull request is far more than in test scope. Could you corresponding modify the description/title?
41a6a98
to
224b14d
Compare
@tisonkun, hi, thanks for your comment. I don't know what scope is better, since this pr changed many modules. any suggestion? Thanks. |
Hi @wangxiyuan I revoke my change request above. After taking a look at the corresponding issue I know the root cause of this pull request is to adjust test so sort it into test component makes sense to me. Besides, what do you think if we change the title of the pull request and the commit to "Adjust tests to tolerate arithmetic differences between x86 and ARM" as the original JIRA written? I think it is more descriptive. |
@flinkbot run travis |
Could we reduce the changes to the scope where we really need strict results? In other parts, like exponential backoff, strict precision doesn't actually matter. |
To clarify how this relates to my previous comment ("have just StrictMath"): |
224b14d
to
537669f
Compare
@StephanEwen Thanks for your review. ThenI just change the place where affect the test. |
can anyone review this PR? Thanks. |
@StephanEwen may this PR be visited again? |
Looks good to me. |
…essions This ensures cross architecture compatibility of results. This closes apache#9681
What is the purpose of the change
math.log
andmath.pow
can actually return slightly different results across platforms because of hardware optimizations. We should use StrictMath instead to ensure the answers are already the same.Brief change log
Verifying this change
This change is already covered by existing tests
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: (yes / no)Documentation