Repository navigation
Conversation
|
🎊 +1 overall
This message was automatically generated. |
dfea637 to
6b4f941
Compare
Hean-Chhinling
left a comment
There was a problem hiding this comment.
Thanks for the patch @riya2305!
LGTM!
|
🎊 +1 overall
This message was automatically generated. |
|
@slfan1989 can you please review and merge this, thanks. |
Hean-Chhinling
left a comment
There was a problem hiding this comment.
After looking at it more closer, I could some flaws on this PR.
- Shouldn't the test be at
TestAMWebApp.javainstead ofTestProxyUriUtils.java? - I think the ticket shall be at MAPREDUCE project instead of HADOOP.
- I found a similar changes before here. Shall it be linked with each other? https://issues.apache.org/jira/browse/MAPREDUCE-7533
And it would be nice to explain what was wrong with MAPREDUCE-7533 that why this PR is needed.
|
|
||
|
|
||
| @Test | ||
| void testGetProxyUriWithWebAppPath() throws Exception { |
There was a problem hiding this comment.
Thanks for the fix. Could we add a regression test in TestAMWebApp that exercises the actual redirect and route changes?
The new test only checks ProxyUriUtils.getProxyUri(), which is unchanged and already supports URLs containing paths. It would still pass if both changes to AMWebApp were reverted, so it does not protect against the reported 404 regression.
Please start the AM WebApp and verify that:
- Requesting
/redirects to/mapreduce/app. - Following the redirect returns HTTP 200 with the expected application page
content.
Please also ensure the test cleans up both the client service and the MRApp in a finally block.
Description of PR
On the YARN UI clicking on the application tracking URL results in 404; Appending /mapreduce/app at the end of URL will render to the correct page.
How was this patch tested?
tested patch manually
For code changes:
declared according to the connector-specific documentation? Note: Automated CI
testing doesn't cover all cases so manual testing with cloud storage is still
required.
LICENSE,LICENSE-binary,NOTICE-binaryfiles?