[
https://issues.apache.org/jira/browse/HDDS-10725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17839229#comment-17839229
]
Attila Doroszlai commented on HDDS-10725:
-----------------------------------------
https://github.com/mockito/mockito/issues/2573
https://github.com/mockito/mockito/issues/2612
Switching to mockito-inline fixes the problem.
> TestContentGenerator#writeWithHsync fails with Java 17
> ------------------------------------------------------
>
> Key: HDDS-10725
> URL: https://issues.apache.org/jira/browse/HDDS-10725
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: test
> Reporter: Attila Doroszlai
> Assignee: Attila Doroszlai
> Priority: Major
>
> {code}
> [ERROR] Tests run: 6, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.323
> s <<< FAILURE! - in org.apache.hadoop.ozone.freon.TestContentGenerator
> [ERROR] org.apache.hadoop.ozone.freon.TestContentGenerator.writeWithHsync
> Time elapsed: 0.294 s <<< ERROR!
> java.lang.NullPointerException: Cannot read the array length because
> "this.buf" is null
> at
> java.base/java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:97)
> at
> java.base/java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:130)
> at
> org.apache.hadoop.ozone.freon.ContentGenerator.write(ContentGenerator.java:98)
> at
> org.apache.hadoop.ozone.freon.TestContentGenerator.writeWithHsync(TestContentGenerator.java:113)
> at java.base/java.lang.reflect.Method.invoke(Method.java:568)
> at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
> at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]