Examples of PermanentLockingException


Examples of com.thinkaurelius.titan.diskstorage.locking.PermanentLockingException

        } 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);
        }
    }
View Full Code Here

Examples of com.thinkaurelius.titan.diskstorage.locking.PermanentLockingException

    protected void deleteSingleLock(KeyColumn lockID, AstyanaxLockStatus stat, StoreTransaction tx) throws PermanentLockingException {
        try {
            stat.getLock().release();
            log.debug("Unlocked {} in store {}", lockID, lockColumnFamily.getName());
        } catch (Exception e) {
            throw new PermanentLockingException(e); // TODO handle better?
        }
    }
View Full Code Here

Examples of com.thinkaurelius.titan.diskstorage.locking.PermanentLockingException

        } else {
            evList = ImmutableList.<StaticBuffer>of(ev);
        }

        if (!Iterables.elementsEqual(evList, avList)) {
            throw new PermanentLockingException(
                    "Expected value mismatch for " + kc + ": expected="
                            + evList + " vs actual=" + avList + " (store=" + store.getName() + ")");
        }
    }
View Full Code Here

Examples of com.thinkaurelius.titan.diskstorage.locking.PermanentLockingException

    @Override
    public void acquireLock(StaticBuffer key, StaticBuffer column, StaticBuffer expectedValue, StoreTransaction txh) throws StorageException {
        if (locker != null) {
            ExpectedValueCheckingTransaction tx = (ExpectedValueCheckingTransaction) txh;
            if (tx.isMutationStarted())
                throw new PermanentLockingException("Attempted to obtain a lock after mutations had been persisted");
            KeyColumn lockID = new KeyColumn(key, column);
            log.debug("Attempting to acquireLock on {} ev={}", lockID, expectedValue);
            locker.writeLock(lockID, tx.getConsistentTransaction());
            tx.storeExpectedValue(this, lockID, expectedValue);
        } else {
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.