long sleepTime = 50;
long startTime = System.currentTimeMillis();
LockID lid = new LockID(ZooUtil.getRoot(instance) + Constants.ZTSERVERS, sessionId.lockId);
while (true) {
if (!ZooLock.isLockHeld(ServerClient.getZooCache(instance), lid)) {
// ACCUMULO-1152 added a tserver lock check to the tablet location cache, so this invalidation prevents future attempts to contact the
// tserver even its gone zombie and is still running w/o a lock