dongjoon-hyun opened a new pull request, #60571:
URL: https://github.com/apache/spark/pull/60571

   ### What changes were proposed in this pull request?
   
   This PR removes the static resource handler that `StreamingTab` mounts at 
`/static/streaming` in `attach()` and unmounts in `detach()`. `UISeleniumSuite` 
now expects 4 handlers under `/streaming` while the tab is attached, instead of 
5.
   
   ### Why are the changes needed?
   
   No page has used `/static/streaming/...` since SPARK-29543 
([v3.0.0](https://github.com/apache/spark/releases/tag/v3.0.0) (2020-06-06)).
   
   - SPARK-7650 added this handler to serve `streaming-page.{css,js}` from the 
`streaming` module.
   - SPARK-29543 moved both files into core's `org/apache/spark/ui/static` so 
that the Structured Streaming UI could share them, and changed `StreamingPage` 
to load them from `/static/streaming-page.{css,js}`, which the default 
`/static` handler of `SparkUI` serves. The handler stayed, pointed at the same 
core directory.
   
   Since then, the handler only serves the core static directory a second time 
under `/static/streaming/`.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. The Streaming tab still loads `/static/streaming-page.{css,js}` from the 
default `/static` handler. Nothing loads resources under `/static/streaming/`.
   
   ### How was this patch tested?
   
   Pass the CIs with the updated `UISeleniumSuite`. While the tab is attached, 
the four handlers under `/streaming` are `/streaming`, `/streaming/json`, 
`/streaming/batch`, and `/streaming/batch/json`.
   
   ```
   $ build/sbt 'streaming/testOnly *UISeleniumSuite'
   ...
   [info] UISeleniumSuite:
   [info] - attaching and detaching a Streaming tab (4 seconds, 378 
milliseconds)
   [info] Run completed in 5 seconds, 542 milliseconds.
   [info] Total number of tests run: 1
   [info] Suites: completed 1, aborted 0
   [info] Tests: succeeded 1, failed 0, canceled 0, ignored 0, pending 0
   [info] All tests passed.
   ```
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Opus 5.5
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to