Search in sources :

Example 1 with FlipFailedKernelException

use of org.neo4j.kernel.api.exceptions.index.FlipFailedKernelException in project neo4j by neo4j.

the class FlippableIndexProxy method flip.

public void flip(Callable<Void> actionDuringFlip, FailedIndexProxyFactory failureDelegate) throws FlipFailedKernelException {
    lock.writeLock().lock();
    try {
        assertOpen();
        try {
            actionDuringFlip.call();
            this.delegate = flipTarget.create();
        } catch (Exception e) {
            this.delegate = failureDelegate.create(e);
            throw new ExceptionDuringFlipKernelException(e);
        }
    } finally {
        lock.writeLock().unlock();
    }
}
Also used : ExceptionDuringFlipKernelException(org.neo4j.kernel.api.exceptions.index.ExceptionDuringFlipKernelException) FlipFailedKernelException(org.neo4j.kernel.api.exceptions.index.FlipFailedKernelException) IOException(java.io.IOException) IndexActivationFailedKernelException(org.neo4j.kernel.api.exceptions.index.IndexActivationFailedKernelException) IndexNotFoundKernelException(org.neo4j.kernel.api.exceptions.index.IndexNotFoundKernelException) ExceptionDuringFlipKernelException(org.neo4j.kernel.api.exceptions.index.ExceptionDuringFlipKernelException) IndexEntryConflictException(org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException) IndexPopulationFailedKernelException(org.neo4j.kernel.api.exceptions.index.IndexPopulationFailedKernelException) UniquePropertyValueValidationException(org.neo4j.kernel.api.exceptions.schema.UniquePropertyValueValidationException) IndexProxyAlreadyClosedKernelException(org.neo4j.kernel.api.exceptions.index.IndexProxyAlreadyClosedKernelException)

Aggregations

IOException (java.io.IOException)1 ExceptionDuringFlipKernelException (org.neo4j.kernel.api.exceptions.index.ExceptionDuringFlipKernelException)1 FlipFailedKernelException (org.neo4j.kernel.api.exceptions.index.FlipFailedKernelException)1 IndexActivationFailedKernelException (org.neo4j.kernel.api.exceptions.index.IndexActivationFailedKernelException)1 IndexEntryConflictException (org.neo4j.kernel.api.exceptions.index.IndexEntryConflictException)1 IndexNotFoundKernelException (org.neo4j.kernel.api.exceptions.index.IndexNotFoundKernelException)1 IndexPopulationFailedKernelException (org.neo4j.kernel.api.exceptions.index.IndexPopulationFailedKernelException)1 IndexProxyAlreadyClosedKernelException (org.neo4j.kernel.api.exceptions.index.IndexProxyAlreadyClosedKernelException)1 UniquePropertyValueValidationException (org.neo4j.kernel.api.exceptions.schema.UniquePropertyValueValidationException)1