Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-47934] [CORE] Ensure trailing slashes in HistoryServer URL redirections #46157

Conversation

huangzhir
Copy link
Contributor

What changes were proposed in this pull request?

This PR addresses the issue outlined in JIRA ticket SPARK-47934, where inconsistent application of trailing slashes in URL redirections within the Spark's history web UI was leading to unnecessary HTTP redirects by Jetty. This inefficiency caused increased load times and reduced the UI's performance.

Why are the changes needed?

to fix SPARK-47934

Does this PR introduce any user-facing change?

no

How was this patch tested?

This patch was tested with an added unit test method in the HistoryServerSuite that verifies correct redirection behavior for different attempt IDs.

Was this patch authored or co-authored using generative AI tooling?

no

@github-actions github-actions bot added the CORE label Apr 22, 2024
@dongjoon-hyun dongjoon-hyun changed the title [SPARK-47934] [CORE] Ensure consistent trailing slashes in URL redirections [SPARK-47934] [CORE] Ensure trailing slashes in HistoryServer URL redirections May 1, 2024
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Thank you, @huangzhir .

@dongjoon-hyun
Copy link
Member

Welcome to the Apache Spark community, @huangzhir .
I added you to the Apache Spark contributor group and assigned SPARK-47934 to you.
Congratulations for your first commit!

This will be a part of Apache Spark 4.0.0. You can check it next Monday's Apache Spark 4.0.0-preview.

JacobZheng0927 pushed a commit to JacobZheng0927/spark that referenced this pull request May 11, 2024
…directions

### What changes were proposed in this pull request?
This PR addresses the issue outlined in JIRA ticket [SPARK-47934](https://issues.apache.org/jira/browse/SPARK-47934), where inconsistent application of trailing slashes in URL redirections within the Spark's history web UI was leading to unnecessary HTTP redirects by Jetty. This inefficiency caused increased load times and reduced the UI's performance.

### Why are the changes needed?
to fix  [SPARK-47934](https://issues.apache.org/jira/browse/SPARK-47934)

### Does this PR introduce _any_ user-facing change?
no

### How was this patch tested?
This patch was tested with an added unit test method in the HistoryServerSuite that verifies correct redirection behavior for different attempt IDs.

### Was this patch authored or co-authored using generative AI tooling?
no

Closes apache#46157 from huangzhir/spark-history-fix-url-redirect-slash.

Authored-by: huangzhir <306824224@qq.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants