Sergey Shelukhin created ZOOKEEPER-2469: -------------------------------------------
Summary: infinite loop in ZK re-login Key: ZOOKEEPER-2469 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2469 Project: ZooKeeper Issue Type: Bug Reporter: Sergey Shelukhin {noformat} int retry = 1; while (retry >= 0) { try { LOG.debug("running ticket cache refresh command: " + cmd + " " + kinitArgs); Shell.execCommand(cmd, kinitArgs); break; } catch (Exception e) { if (retry > 0) { --retry; // sleep for 10 seconds try { Thread.sleep(10 * 1000); } catch (InterruptedException ie) { LOG.error("Interrupted while renewing TGT, exiting Login thread"); return; } } else { LOG.warn("Could not renew TGT due to problem running shell command: '" + cmd + " " + kinitArgs + "'" + "; exception was:" + e + ". Exiting refresh thread.",e); return; } } } {noformat} And one more (at least) below that will retry forever. -- This message was sent by Atlassian JIRA (v6.3.4#6332)