Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-51155][CORE] Make
SparkContext
show total runtime after stop…
…ping ### What changes were proposed in this pull request? This PR aims to make `SparkContext` show total runtime after stopping. ### Why are the changes needed? In Spark UI, we can check `Total Uptime`. <img width="275" alt="Screenshot 2025-02-10 at 21 41 48" src="https://github.com/user-attachments/assets/d31ede44-ac07-428e-b26d-4c90cfda17d2" /> It would be great if the log shows the total uptime of `SparkContext`. **BEFORE** ``` $ bin/run-example SparkPi 2>&1 | grep SparkContext | tail -n1 25/02/10 21:41:13 INFO SparkContext: Successfully stopped SparkContext ``` **AFTER** ``` $ bin/run-example SparkPi 2>&1 | grep SparkContext | tail -n1 25/02/10 21:39:34 INFO SparkContext: Successfully stopped SparkContext (Uptime: 3453 ms) ``` ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Manually run the job and check the log because this is a log-related PR. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #49878 from dongjoon-hyun/SPARK-51155. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
- Loading branch information