You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Rohit Agarwal (JIRA)" <ji...@apache.org> on 2015/12/07 23:31:10 UTC
[jira] [Created] (SPARK-12186) stage web URI will redirect to the
wrong location if it is the first URI from the application to be requested
from the history server
Rohit Agarwal created SPARK-12186:
-------------------------------------
Summary: stage web URI will redirect to the wrong location if it is the first URI from the application to be requested from the history server
Key: SPARK-12186
URL: https://issues.apache.org/jira/browse/SPARK-12186
Project: Spark
Issue Type: Bug
Components: Web UI
Affects Versions: 1.5.1
Reporter: Rohit Agarwal
Priority: Minor
In the history server when we open an application link for the first time, it loads the app and registers the app UI and sends a redirect to the URI that was requested.
The code to send the redirect is:
{{res.sendRedirect(res.encodeRedirectURL(req.getRequestURI()))}}
However {{req.getRequestURI()}} is not the complete URI that was requested, it doesn't contain the query string.
Stage URIs are of the following form:
http://localhost:18080/history/application_1449188824095_0001/stages/stage/?id=0&attempt=0
When such a URI is *the first URI from the application to be requested*, it redirects to a URI like:
http://localhost:18080/history/application_1449188824095_0001/stages/stage/
which errors with
{code}
HTTP ERROR 400
Problem accessing /history/application_1449188824095_0001/stages/stage/. Reason:
requirement failed: Missing id parameter
Powered by Jetty://
{code}
This is not a frequent occurrence because you usually navigate to the stage URI after you have navigated to some other URI belonging to the application and then this will not happen, only when the stage URI is the first URI from the application to be requested from the history server will you see this issue.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org