Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-8246 Java 11/17 Support and Testing
  3. HDDS-10725

TestContentGenerator#writeWithHsync fails with Java 17

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • test

    Description

      [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)
      

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: