Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-29087

Use DelegatingServletContextHandler to avoid CCE

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0, 3.0.0
    • 2.4.5, 3.0.0
    • DStreams, Spark Core
    • None

    Description

      SPARK-27122 fixes `ClassCastException` at `yarn` module by using `DelegatingServletContextHandler`. Initially, this was discovered with JDK9+, but the class path issues affected in JDK8, too. This issue aims to fix `streaming` module.

      $ build/mvn test -pl streaming
      ...
      UISeleniumSuite:
      - attaching and detaching a Streaming tab *** FAILED ***
        java.lang.ClassCastException: org.sparkproject.jetty.servlet.ServletContextHandler cannot be cast to org.eclipse.jetty.servlet.ServletContextHandler
      ...
      Tests: succeeded 337, failed 1, canceled 0, ignored 1, pending 0
      *** 1 TEST FAILED ***
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      

      Attachments

        Issue Links

          Activity

            People

              dongjoon Dongjoon Hyun
              dongjoon Dongjoon Hyun
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: