You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Oleksandr Shevchenko (JIRA)" <ji...@apache.org> on 2018/03/30 14:27:00 UTC

[jira] [Updated] (YARN-8096) Wrong condition in AmIpFilter#getProxyAddresses() to update the proxy IP list

     [ https://issues.apache.org/jira/browse/YARN-8096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleksandr Shevchenko updated YARN-8096:
---------------------------------------
    Attachment: YARN-8096.001.patch

> Wrong condition in AmIpFilter#getProxyAddresses() to update the proxy IP list
> -----------------------------------------------------------------------------
>
>                 Key: YARN-8096
>                 URL: https://issues.apache.org/jira/browse/YARN-8096
>             Project: Hadoop YARN
>          Issue Type: Bug
>    Affects Versions: 3.0.0
>            Reporter: Oleksandr Shevchenko
>            Priority: Major
>         Attachments: YARN-8096.001.patch
>
>
> In AmIpFilter#getProxyAddresses() we have the following condition:
> long now = System.currentTimeMillis();
> if (proxyAddresses == null || (lastUpdate + UPDATE_INTERVAL) >= now) {
> //update RM address
> }
> By design, the address should be updated if the last update was more then 5 min ago. But as we see this condition is wrong.
> Currently, RM address updates permanently. But after 5 minutes after the last update, RM address will never be updated again. As a result, we are always redirected to the failed page that was added by YARN-4767, even if a network issue is resolved now.
> So, we should change this condition to:
> if (proxyAddresses == null || (lastUpdate + UPDATE_INTERVAL) <= now) {
> //update RM address
> }



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org