Commit 2d94091
[SPARK-55193][CORE][BUILD] Use
### What changes were proposed in this pull request?
This PR replaces `GzipHandler` with `CompressionHandler` in `JettyUtils` because `GzipHandler` has been deprecated and marked with `forRemoval = true`. The modification follows the deprecation guideline refer to
https://github.com/jetty/jetty.project/blob/e9d4cba5a9d8ed62100bb09480af6fbb39c636cb/jetty-core/jetty-server/src/main/java/org/eclipse/jetty/server/handler/gzip/GzipHandler.java#L42-L49
```
/**
* deprecated use the new {code CompressionHandler} available in {code org.eclipse.jetty.compression:jetty-compression-server}
* with your choice of compression implementation (gzip is {code org.eclipse.jetty.compression:jetty-compression-gzip},
* brotli is {code org.eclipse.jetty.compression:jetty-compression-brotli}, and zstandard is
* {code org.eclipse.jetty.compression:jetty-compression-zstandard})
*/
Deprecated(since = "12.1.1", forRemoval = true)
public class GzipHandler extends Handler.Wrapper implements GzipFactory
```
### Why are the changes needed?
Cleanup deprecated API usage.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
- Pass Github Actions
- Manually built a Spark distribution and verified that the UI displays correctly.
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #53928 from LuciferYang/JettyUtils-GzipHandler.
Lead-authored-by: yangjie01 <yangjie01@baidu.com>
Co-authored-by: YangJie <yangjie01@baidu.com>
Signed-off-by: Kousuke Saruta <sarutak@apache.org>CompressionHandler as a replacement for the deprecated GzipHandler in JettyUtils
1 parent 866a6e8 commit 2d94091
File tree
3 files changed
+47
-7
lines changed- core
- src/main/scala/org/apache/spark/ui
3 files changed
+47
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
185 | 200 | | |
186 | 201 | | |
187 | 202 | | |
| |||
541 | 556 | | |
542 | 557 | | |
543 | 558 | | |
544 | | - | |
| 559 | + | |
545 | 560 | | |
546 | 561 | | |
547 | 562 | | |
| |||
568 | 583 | | |
569 | 584 | | |
570 | 585 | | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
571 | 589 | | |
572 | 590 | | |
573 | 591 | | |
| |||
595 | 613 | | |
596 | 614 | | |
597 | 615 | | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
598 | 619 | | |
599 | 620 | | |
600 | 621 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | | - | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
478 | | - | |
479 | | - | |
480 | | - | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | | - | |
| 485 | + | |
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
| 493 | + | |
| 494 | + | |
494 | 495 | | |
495 | 496 | | |
496 | 497 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
616 | 634 | | |
617 | 635 | | |
618 | 636 | | |
| |||
0 commit comments