try {
lock.acquire();
log.debug("Locked {} in store {}", lockID, lockColumnFamily.getName());
return new AstyanaxLockStatus(approxTimeNS, TimeUnit.NANOSECONDS, lock);
} catch (StaleLockException e) {
throw new TemporaryLockingException(e); // TODO handle gracefully?
} catch (BusyLockException e) {
throw new TemporaryLockingException(e); // TODO handle gracefully?
} catch (Exception e) {
throw new PermanentLockingException(e);
}
}