Details
Description
Currently we have a relogin() method in UGI which attempts to login if there is no login attempted in the last 10 minutes or configured amount of time
We should also have provision for doing a forceful relogin irrespective of the time window that the client can choose to use it if needed . Consider the below scenario:
- SASL Server is reimaged and new keytabs are fetched with refreshing the password
- SASL client connection to the server would fail when it tries with the cached service ticket
- We should try to logout to clear the service tickets in cache and then try to login back in such scenarios. But since the current relogin() doesn't guarantee a login, it could cause an issue
- A forceful relogin in this case would help after logout