Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-8033 JDK 9 support
  3. FLINK-12065

E2E tests fail due to illegal-access warning on Java 9

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.0
    • Fix Version/s: 1.9.0
    • Component/s: Tests

      Description

      When accessing inaccessible fields via reflection a warning is printed on Java 9 like below:

      WARNING: An illegal reflective access operation has occurred
      WARNING: All illegal access operations will be denied in a future release
      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by org.apache.flink.core.memory.HybridMemorySegment (file:/home/travis/build/zentol/flink/flink-dist/target/flink-1.9-SNAPSHOT-bin/flink-1.9-SNAPSHOT/lib/flink-dist_2.11-1.9-SNAPSHOT.jar) to field java.nio.Buffer.address
      

      These are printed into the .out file of the processes, and cause e2e tests to fail since we check for empty .out files.

      From what I've gathered we cannot disable these warnings, so we'll have to adapt the check to ignore these.
      We can't just fix these accesses since they also occur in libraries (like akka's netty)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m