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

TestAuditParser.testLoadCommand fails with Java 11+

    XMLWordPrintableJSON

Details

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

    Description

      [ERROR] Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.31 s <<< FAILURE! - in org.apache.hadoop.ozone.audit.parser.TestAuditParser
      [ERROR] org.apache.hadoop.ozone.audit.parser.TestAuditParser.testLoadCommand  Time elapsed: 0.01 s  <<< FAILURE!
      java.lang.AssertionError: 
      
      Expecting:
       <"Error while calling command (org.apache.hadoop.ozone.audit.parser.handler.LoadCommandHandler@266374ef): java.lang.ArrayIndexOutOfBoundsException: Index 5 out of bounds for length 5">
      to contain:
       <": 5"> 
      	at org.apache.hadoop.ozone.audit.parser.TestAuditParser.testLoadCommand(TestAuditParser.java:195)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
      	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
      

      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: