[
https://issues.apache.org/jira/browse/YARN-1525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13877716#comment-13877716
]
Xuan Gong commented on YARN-1525:
---------------------------------
[~cindy2012]
Comments:
* Looks like the web service does not work.
* Can we add some test cases ?
* At RMWebApp#findRedirectPath()
{code}
for (String currentId : rmIds) {
.
.
}
{code}
Can we use while loop until we find the active rm ? Also, we may need to set a
MAX_WAITTING_TIME. Then we can break the while loop either we find the active
rm or it exceeds the MAX_WAITTING_TIME.
* nit
{code}
InetSocketAddress rmSock =
yarnConf.getSocketAddr(YarnConfiguration.RM_WEBAPP_ADDRESS,
YarnConfiguration.DEFAULT_RM_WEBAPP_ADDRESS,
YarnConfiguration.DEFAULT_RM_WEBAPP_PORT);
{code}
The variable is not used. We can remove it.
> Web UI should redirect to active RM when HA is enabled.
> -------------------------------------------------------
>
> Key: YARN-1525
> URL: https://issues.apache.org/jira/browse/YARN-1525
> Project: Hadoop YARN
> Issue Type: Sub-task
> Reporter: Xuan Gong
> Assignee: Cindy Li
> Attachments: YARN1525.patch.v1, YARN1525.patch.v2
>
>
> When failover happens, web UI should redirect to the current active rm.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)