Commit a911310
[SPARK-54877][UI] Make display stacktrace on UI error page configurable
### What changes were proposed in this pull request?
This PR adds a new configuration `spark.ui.showErrorStacks` to allow user to disable displaying stacktrace on UI error page.
### Why are the changes needed?
To avoid exposing much internal info of the service for security purposes.
### Does this PR introduce _any_ user-facing change?
No, the default value of the newly added configuration does not change the existing behavior.
### How was this patch tested?
Manually tested, modified AllJobsPage.scala to simulate an internal error.
Run with `--conf spark.ui.showErrorStacks=true` (default behavior)
<img width="894" height="756" alt="image" src="https://github.com/user-attachments/assets/cb2e77ef-175a-43b0-bab2-1cb9e294be27" />
Run with `--conf spark.ui.showErrorStacks=false`
<img width="885" height="206" alt="image" src="https://github.com/user-attachments/assets/50d53286-eb11-466e-8c80-52a88a1806e1" />
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #53656 from pan3793/SPARK-54877.
Authored-by: Cheng Pan <[email protected]>
Signed-off-by: Kousuke Saruta <[email protected]>1 parent eaed471 commit a911310
File tree
2 files changed
+7
-1
lines changed- core/src/main/scala/org/apache/spark
- internal/config
- ui
2 files changed
+7
-1
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
274 | 280 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| |||
0 commit comments