Examples of LockID


Examples of org.apache.accumulo.core.zookeeper.ZooLock.LockID

         
          boolean lockHeld = false;
          String lockId = new String(columnUpdate.getValue());
         
          try {
            lockHeld = ZooLock.isLockHeld(zooCache, new LockID(zooRoot, lockId));
          } catch (Exception e) {
            log.debug("Failed to verify lock was held " + lockId + " " + e.getMessage());
          }
         
          if (!lockHeld) {
View Full Code Here

Examples of org.apache.accumulo.core.zookeeper.ZooUtil.LockID

 
  public synchronized LockID getLockID() {
    if (lock == null) {
      throw new IllegalStateException("Lock not held");
    }
    return new LockID(path, lock, zooKeeper.getZooKeeper().getSessionId());
  }
View Full Code Here

Examples of org.apache.accumulo.core.zookeeper.ZooUtil.LockID

 
  public synchronized LockID getLockID() {
    if (lock == null) {
      throw new IllegalStateException("Lock not held");
    }
    return new LockID(path, lock, zooKeeper.getZooKeeper().getSessionId());
  }
View Full Code Here

Examples of org.apache.accumulo.core.zookeeper.ZooUtil.LockID

 
  public synchronized LockID getLockID() {
    if (lock == null) {
      throw new IllegalStateException("Lock not held");
    }
    return new LockID(path, lock, zooKeeper.getZooKeeper().getSessionId());
  }
View Full Code Here

Examples of org.apache.accumulo.core.zookeeper.ZooUtil.LockID

 
  public synchronized LockID getLockID() {
    if (lock == null) {
      throw new IllegalStateException("Lock not held");
    }
    return new LockID(path, lock, zooKeeper.getZooKeeper().getSessionId());
  }
View Full Code Here

Examples of org.apache.accumulo.fate.zookeeper.ZooUtil.LockID

 
  public synchronized LockID getLockID() {
    if (lock == null) {
      throw new IllegalStateException("Lock not held");
    }
    return new LockID(path, lock, zooKeeper.getZooKeeper().getSessionId());
  }
View Full Code Here

Examples of org.apache.accumulo.fate.zookeeper.ZooUtil.LockID

 
  public synchronized LockID getLockID() {
    if (lock == null) {
      throw new IllegalStateException("Lock not held");
    }
    return new LockID(path, lock, zooKeeper.getZooKeeper().getSessionId());
  }
View Full Code Here

Examples of org.apache.accumulo.fate.zookeeper.ZooUtil.LockID

 
  public synchronized LockID getLockID() {
    if (lock == null) {
      throw new IllegalStateException("Lock not held");
    }
    return new LockID(path, lock, zooKeeper.getZooKeeper().getSessionId());
  }
View Full Code Here

Examples of org.apache.accumulo.fate.zookeeper.ZooUtil.LockID

   
    long sleepTime = 50;
   
    long startTime = System.currentTimeMillis();
   
    LockID lid = new LockID(ZooUtil.getRoot(instance) + Constants.ZTSERVERS, sessionId.lockId);
   
    ZooCacheFactory zcf = new ZooCacheFactory();
    while (true) {
      if (!ZooLock.isLockHeld(zcf.getZooCache(instance.getZooKeepers(), instance.getZooKeepersSessionTimeOut()), lid)) {
        // ACCUMULO-1152 added a tserver lock check to the tablet location cache, so this invalidation prevents future attempts to contact the
View Full Code Here

Examples of org.apache.accumulo.fate.zookeeper.ZooUtil.LockID

 
  public synchronized LockID getLockID() {
    if (lock == null) {
      throw new IllegalStateException("Lock not held");
    }
    return new LockID(path, lock, zooKeeper.getZooKeeper().getSessionId());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.