liuml07 commented on pull request #2197:
URL: https://github.com/apache/hadoop/pull/2197#issuecomment-680714535


   @sguggilam When I backport the code, I went through the code again. I think 
I found one bug. Before I revert the change, I want to confirm with you.
   
   The new public API
   ```
     public void reloginFromKeytab(boolean ignoreTimeElapsed) throws 
IOException {
       reloginFromKeytab(false, ignoreTimeElapsed);
     }
   ```
   Should be something like:
   ```
     public void reloginFromKeytab(boolean checkTGT) throws IOException {
       reloginFromKeytab(checkTGT, true);
     }
   ```
   
   This way, all new code can call this new API `public void 
reloginFromKeytab(boolean checkTGT)` to force login ignoring the last login 
time, but need to provide if they want to check TGT. Meanwhile, the existing 
calls of `reloginFromKeytab(false)` or `reloginFromKeytab(true)`, the parameter 
value `false` or `true` was previously for `checkTGT`. But with this change, 
they are for `ignoreTimeElapsed`. So the code calling the previously private 
method is broken - I found two places.
   
   Could you explain more? Thanks!


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to