[ 
https://issues.apache.org/jira/browse/YARN-3601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14549943#comment-14549943
 ] 

Weiwei Yang commented on YARN-3601:
-----------------------------------

I set a false flag so that HttpURLConnection does NOT automatically follow the 
redirect, this fixes too many redirections problem. (In the past it doesn't 
have this problem because there is a refresh time of 3 seconds so the client is 
still able to retrieve the redirect url from the http header). I am now able to 
retrieve redirection url from header field "Location",  and null if there is no 
redirection. The overall logic is not changed, the test case is fixed now.

> Fix UT TestRMFailover.testRMWebAppRedirect
> ------------------------------------------
>
>                 Key: YARN-3601
>                 URL: https://issues.apache.org/jira/browse/YARN-3601
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: resourcemanager, webapp
>         Environment: Red Hat Enterprise Linux Workstation release 6.5 
> (Santiago)
>            Reporter: Weiwei Yang
>            Assignee: Weiwei Yang
>            Priority: Critical
>              Labels: test
>         Attachments: YARN-3601.001.patch
>
>
> This test case was not working since the commit from YARN-2605. It failed 
> with NPE exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to