mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
reset kinitFailCount on successful renew.
This commit is contained in:
parent
96bfdfe97d
commit
289b7d3460
2 changed files with 3 additions and 3 deletions
|
|
@ -171,6 +171,4 @@ public class ShellInterpreter extends KerberosInterpreter {
|
|||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory;
|
|||
*/
|
||||
public abstract class KerberosInterpreter extends Interpreter {
|
||||
|
||||
Integer kinitFailCount = 0;
|
||||
private Integer kinitFailCount = 0;
|
||||
protected ScheduledExecutorService scheduledExecutorService;
|
||||
public static Logger logger = LoggerFactory.getLogger(KerberosInterpreter.class);
|
||||
|
||||
|
|
@ -93,6 +93,8 @@ public abstract class KerberosInterpreter extends Interpreter {
|
|||
public Object call() throws Exception {
|
||||
|
||||
if (runKerberosLogin()) {
|
||||
logger.info("Ran runKerberosLogin command successfully.");
|
||||
kinitFailCount = 0;
|
||||
// schedule another kinit run with a fixed delay.
|
||||
scheduledExecutorService
|
||||
.schedule(this, getTimeAsMs(getKerberosRefreshInterval()), TimeUnit.MILLISECONDS);
|
||||
|
|
|
|||
Loading…
Reference in a new issue