Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-10725 Support for Java 11 (LTS)
  3. FLINK-13893

S3 tests are failing due to missing jaxb dependency

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.10.0
    • FileSystems
    • None

    Description

      The (hadoop/presto) S3 filesystems make use of javax.xml.bind but does not declare a dependency on jaxb-api and relies on the JDK containing this class. This is no longer the case on Java 11; we have to add it as a dependency and bundle it in the jar.

      16:20:12.975 [ERROR] Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 5.691 s <<< FAILURE! - in org.apache.flink.fs.s3hadoop.HadoopS3RecoverableWriterExceptionITCase
      16:20:12.992 [ERROR] testResumeAfterCommit(org.apache.flink.fs.s3hadoop.HadoopS3RecoverableWriterExceptionITCase)  Time elapsed: 5.067 s  <<< ERROR!
      java.lang.Exception: Unexpected exception, expected<java.io.IOException> but was<java.lang.NoClassDefFoundError>
      	at org.apache.flink.fs.s3hadoop.HadoopS3RecoverableWriterExceptionITCase.testResumeAfterCommit(HadoopS3RecoverableWriterExceptionITCase.java:165)
      Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
      	at org.apache.flink.fs.s3hadoop.HadoopS3RecoverableWriterExceptionITCase.testResumeAfterCommit(HadoopS3RecoverableWriterExceptionITCase.java:165)
      
      16:20:12.992 [ERROR] testResumeWithWrongOffset(org.apache.flink.fs.s3hadoop.HadoopS3RecoverableWriterExceptionITCase)  Time elapsed: 0.194 s  <<< ERROR!
      java.lang.Exception: Unexpected exception, expected<java.io.IOException> but was<java.lang.NoClassDefFoundError>
      	at org.apache.flink.fs.s3hadoop.HadoopS3RecoverableWriterExceptionITCase.testResumeWithWrongOffset(HadoopS3RecoverableWriterExceptionITCase.java:185)
      Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
      	at org.apache.flink.fs.s3hadoop.HadoopS3RecoverableWriterExceptionITCase.testResumeWithWrongOffset(HadoopS3RecoverableWriterExceptionITCase.java:185)
      

      https://api.travis-ci.org/v3/job/577860512/log.txt

      Attachments

        Issue Links

          Activity

            People

              chesnay Chesnay Schepler
              chesnay Chesnay Schepler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: