Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-24417 Build and Run Spark on JDK11
  3. SPARK-26896

Add maven profiles for running tests with JDK 11

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 3.0.0
    • None
    • Build
    • None

    Description

      Running unit tests w/ JDK 11 trips over some issues w/ the new module system. These can be worked around with the new --add-opens etc. commands. I think we need to add a build profile for JDK 11 to add some extra args to the test runners.

      In particular:

      1) removal of jaxb from java itself (used in pmml export in mllib)

      2) Some reflective access which results in failures, eg.

      Unable to make field jdk.internal.ref.PhantomCleanable
      jdk.internal.ref.PhantomCleanable.prev accessible: module java.base does
      not "opens jdk.internal.ref" to unnamed module
      

      3) Some reflective access which results in warnings (you can add --illegal-access=warn to see all of these).

      All I'm proposing we do here is put in the required handling to make these problems go away, not necessarily do the "right" thing by no longer referencing these unexposed internals.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              irashid Imran Rashid
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: