[ 
https://issues.apache.org/jira/browse/HDDS-12130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nandakumar updated HDDS-12130:
------------------------------
    Fix Version/s: 2.0.0
       Resolution: Fixed
           Status: Resolved  (was: Patch Available)

The PR is merged!

Thanks [~adoroszlai] for the contribution.

> Improve assertion compatibility with old Hadoop
> -----------------------------------------------
>
>                 Key: HDDS-12130
>                 URL: https://issues.apache.org/jira/browse/HDDS-12130
>             Project: Apache Ozone
>          Issue Type: Task
>          Components: test
>            Reporter: Attila Doroszlai
>            Assignee: Attila Doroszlai
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.0.0
>
>
> {{Assertions.assertThat}} is overloaded, returning different assertion object 
> depending on the argument.  Passing an instance of raw {{Comparable}} results 
> in compile error.  Hadoop's {{Path}} used to implement raw {{Comparable}} 
> before HADOOP-16196.  Thus, compiling Ozone with old Hadoop that does not 
> have HADOOP-16196 fails.
> {code}
> [ERROR] 
> hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/fs/contract/AbstractContractGetFileStatusTest.java:[404,13]
>  cannot find symbol
>   symbol:   method isEqualTo(org.apache.hadoop.fs.Path)
>   location: class java.lang.Object
> {code}
> This can be improved by using more specific assertion factory method (e.g. 
> {{assertThatObject}}).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to