-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-20293][WEB UI][History]In the page of 'jobs' or 'stages' of history server web ui,,click the 'Go' button, query paging data, the page error #17608
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
Conversation
…ucceeded|failed|unknown]
…remove redundant description.
…ui,,click the 'Go' button, query paging data, the page error
|
I don't quite understand, in that you say that the problem was URL-encoding the URL, but the solution here is to URL-encode it again. Is that right? maybe you can show a more concrete example of the URL as generated by the UI, and exactly what it is interpreted as, and the error page. This isn't very clear now. |
|
Can one of the admins verify this patch? |
|
Is this, the only way to encode, will not let the browser to escape our special characters.The page will not be error.Fixed the code again. |
|
@guoxiaolongzte This seems familiar, are you using the latest version of Knox with your Spark UI? |
|
@ajbozarth I am using the latest spark version. |
|
After taking another look I was mixing this bug up with another when I asked that |
|
On a quick git blame this is my code that seems to be broken. I'll take a more detailed look when I can in the next couple days. |
|
So how do I deal with this PR?@ajbozarth |
|
I just downloaded the latest spark master code to compile and install , test the problem, there are still bugs, the page is wrong. |
|
I attempted to recreate this with the latest code on Safari, Firefox and Chrome and everything worked fine for me. What browser/environment are you using that you see this issue? |
|
Browser is Chrome. Excuse me,Are you testing at the History Server Web Ui?What is you testing url? Today,I try to recreate the latest Apache master code to test the bug. |
|
I can reproduce this bug. Chrome Safari +My OS is ... macOS Sierra 10.12.3. Java is ... java version "1.8.0_45" And I manually built this against the current master c5f1cc3 and then, I ran And, I followed the images provided in the JIRA - https://issues.apache.org/jira/secure/attachment/12862828/jobs.png and https://issues.apache.org/jira/secure/attachment/12862829/stages.png |
+1. @guoxiaolongzte do you mind if I ask to fill up the PR description with them? I think UI changes require before/after snapshots. |
|
Thanks for the followup @guoxiaolongzte and @HyukjinKwon I'll take another look at work tomorrow. Also for clarification, the reason I'm being extra detailed about this is because I want to make sure this fix isn't just a band-aid solution. |
|
@ajbozarth @HyukjinKwon I have added the PR description again. |
|
@ajbozarth, I am terribly sorry. I just realised that my classpath was pointing out Spark 2.1.0.... (I was testing regressions.....). I just clean/package again and then retested this. I can't reproduce this as below in the current master At that time it was as below: Spark 2.1.0Before GO buttonAfter GO buttonGo button inspectionI double-checked Actual URL path after clicking the button: jobs/?completedJob.prevPageSize=100&completedJob.sort=Job+Id&completedJob.desc=true%23completed&completedJob.page=1&completedJob.pageSize=100#completedI clicked Current Master (7536e28)Before GO buttonAfter GO buttonGo button inspectionI can't reproduce this now. I think we should close this. I apologise again ... |
|
I am trying hard to test it in apache master. |
|
@HyukjinKwon [INFO] Compiling 73 Java sources to /home/spark_build/spark-2.1.0/common/network-common/target/scala-2.11/classes... |
|
After seeing @HyukjinKwon inspector I tracked down the issue and found #16953 that fixed this in master and 2.1 already. It was such a tiny pr I forgot all about it. |
|
@guoxiaolongzte I assume your Java version is 7. I think we dropped the support of Java 7 (https://issues.apache.org/jira/browse/SPARK-19493). We are able to build this on Windows but there are additional settings needed (e.g., memory for maven). (FYI, I was able to build Spark on Windows 7 with 32 bits before and we are building it Windows server 2012 64 bits via AppVeyor up to my knowledge.) @ajbozarth, thank you for your time and effort. I at least confirm that this issue is not reproducible in the current master. @guoxiaolongzte Let's close this. |
|
@ajbozarth |
|
@HyukjinKwon |
|
@HyukjinKwon 17/04/14 13:21:33 WARN ServletHandler: /history/app-20170411132432-0004/1/jobs/ |
|
It sounds a different issue with this. If it is a question, maybe, it might be better to ask a question to mailing list first before opening a JIRA. If it is really an issue, it might be better to report it with description, snaptops and steps to reproduce like I did above #17608 (comment) and #17608 (comment) It seems a warning not an error BTW. |














What changes were proposed in this pull request?
1.In the page of 'jobs' or 'stages' of History Server web ui,
Click on the 'Go' button, query paging data, the page error, function can not be used.
2.My environment
Browser is "Chrome 49.0.2623.75 m".
Spark version is 2.1.0.
My OS is "windows 7".
Java is "java version "1.7.0_55"
spark server os is "SUSE Linux Enterprise Server 11 SP3 (x86_64) - Kernel".
Must be History Server Web ui.
3.The reasons are as follows:
'#' was escaped by the browser as% 23.
'& CompletedStage.desc = true% 23completed', the parameter value of 'desc' becomes ' true% 23',is not 'true', causing the page to report an error. The error is as follows:
HTTP ERROR 400
Problem Access / history / app-20170411132432-0004 / stages /. Reason:
For input string: "true # completed"
Powered by Jetty: //
4.UI changes require before snapshots:
url:
http://10.43.183.120:18082/history/app-20170411132432-0004/jobs/?completedJob.prevPageSize=100&completedJob.sort=Job+Id&completedJob**.desc=true%23**completed&completedJob.page=1&completedJob.pageSize=100#completed
And, I followed the images provided in the JIRA - https://issues.apache.org/jira/secure/attachment/12862828/jobs.png
https://issues.apache.org/jira/secure/attachment/12862829/stages.png
https://issues.apache.org/jira/secure/attachment/12862826/error1.png
https://issues.apache.org/jira/secure/attachment/12862827/error2.png
5.UI changes require after snapshots:
url:
http://10.43.183.120:18082/history/app-20170411132432-0004/jobs/%2Fhistory%2Fapp-20170411132432-0004%2Fjobs%2F%3F%26completedJob.sort%3DJob+Id%26completedJob.desc%3Dtrue%23completed?completedJob.prevPageSize=100&completedJob.page=1&completedJob.pageSize=100
6.The amendments are as follows:
The URL of the accessed URL is escaped to ensure that the URL is not escaped by the browser.
please see attachment of 'https://issues.apache.org/jira/browse/SPARK-20293'.
How was this patch tested?
manual tests
Please review http://spark.apache.org/contributing.html before opening a pull request.