This applies to only branch-2.7 or earlier code.
When a NoAuthException is thrown in non HA mode(like in the scenario of
YARN-4127), RM incessantly keeps on retrying the ZK operation.
This is because we do not handle NoAuthException properly in branch-2.7 code when HA is not enabled.
In ZKRMStateStore#runWithRetries, we have code as under. As can be seen if HA is not enabled, we neither rethrow NoAuthException nor do we have any logic to increment retries and back out if retries are maxed out.