Uh oh!
There was an error while loading. Please reload this page.
HDDS-9978. Improve assertTrue assertions in OM integration tests - #5850
Conversation
adoroszlai
commented
Dec 21, 2023
@wzhallright please resolve conflicts |
# Conflicts: # hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/pipeline/TestLeaderChoosePolicy.java # hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestOzoneRpcClientAbstract.java # hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOmBlockVersioning.java
wzhallright
commented
Dec 21, 2023
Has resolved conflicts. Thanks for review. |
adoroszlai
left a comment
There was a problem hiding this comment.
Thanks @wzhallright for updating the patch. Let's wait with this a bit for other conflicting changes.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
hemantk-12
commented
Dec 22, 2023
@wzhallright, I think you have to wait for HDDS-9922 and update https://github.com/apache/ozone/pull/5838/files?diff=unified&w=0#diff-7204a4e31ff9ef05e7839a26737265513d5aedc6ddeac72a9cbda7f263a0ddffR1826 as well. |
wzhallright
commented
Dec 22, 2023
OK,Thanks for review @hemantk-12. I will rebase and update it after #5838 is merged. |
adoroszlai
commented
Dec 22, 2023
No need to wait/rebase, filesystem integration tests will be covered by separate sub-task later. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
adoroszlai
commented
Dec 22, 2023
Thanks @wzhallright for the improvement. |
What changes were proposed in this pull request?
Improve assertTrue assertions in hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om
Assertions in the form:
do not provide any information about the actual value, if the assertion fails.
This can be improved by replacing them with:
which gives us more info in the form:
Similarly, assertions about inequality relations, e.g.:
can be replaced with:
The goal of this task is to find and replace such assertTrue assertions.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-9978
CI
https://github.com/wzhallright/ozone/actions/runs/7295265484