Skip to content

fix(spark4): support Spark 4.2 Jetty 12 (ee10) in history server UI - #80

Open
Prajaktcs wants to merge 3 commits into
dataflint:mainfrom
Prajaktcs:spark42-jetty12-ee10
Open

fix(spark4): support Spark 4.2 Jetty 12 (ee10) in history server UI#80
Prajaktcs wants to merge 3 commits into
dataflint:mainfrom
Prajaktcs:spark42-jetty12-ee10

Conversation

@Prajaktcs

@Prajaktcs Prajaktcs commented Jul 17, 2026

Copy link
Copy Markdown

Summary

  • Fix DataFlint history/live UI on Spark 4.2 (Jetty 12 / ee10): reflective servlet class lookup + baseResource / gzip init-param changes in
    DataflintJettyUtils
  • Keep fallbacks for Spark 3.x / 4.0 / 4.1 Jetty packages
  • Add DataflintJettyUtilsSpec against Spark 4.2.0 and an example_4_2_0 project
  • Bump Scala to 2.13.18 so Spark 4.2 examples/tests run (avoids MurmurHash3.caseClassHash NoSuchMethodError)

Test plan

Spark 4.2 upgraded to Jetty 12, shading the servlet classes under
org.sparkproject.jetty.ee10.servlet. DataflintJettyUtils only probed the
Jetty 9-11 package (org.sparkproject.jetty.servlet / org.eclipse.jetty.servlet),
so createStaticHandler failed with ClassNotFoundException:
org.eclipse.jetty.servlet.ServletContextHandler and the history UI returned
HTTP 500.

Extend the reflective class lookup to try the ee10 package first, keeping the
older packages as fallbacks (backwards compatible with Spark 3.x / 4.0 / 4.1).
Also branch the two Jetty-11-specific init-params that changed in Jetty 12:
the DefaultServlet resource param (resourceBase -> baseResource) and the gzip
param namespace.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@CLAassistant

CLAassistant commented Jul 17, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Prajaktcs and others added 2 commits July 30, 2026 21:53
Add a pluginspark4 integration test against Spark 4.2.0 and an example_4_2_0 project so the Jetty 12 history/live UI fix is covered on the classpath that ships ee10.

Co-authored-by: Cursor <cursoragent@cursor.com>
Spark 4.2 requires Scala 2.13.18+; bump the project Scala version and fork the example run with the build-root CWD so local example_4_2_0/run works.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Prajaktcs
Prajaktcs marked this pull request as ready for review July 31, 2026 02:53
@Prajaktcs Prajaktcs mentioned this pull request Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants