Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.0.0
-
None
-
None
-
Reviewed
Description
In AmIpFilter#getProxyAddresses() we have the following condition:
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 fail 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 }