org.neo4j.kernel.ha.lock
Class LocalDeadlockDetectedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.neo4j.kernel.DeadlockDetectedException
                  extended by org.neo4j.kernel.ha.lock.LocalDeadlockDetectedException
All Implemented Interfaces:
Serializable

public class LocalDeadlockDetectedException
extends org.neo4j.kernel.DeadlockDetectedException

Temporary exception to aid in driving out a nasty "lock get stuck" issue in HA. Since it's subclasses DeadlockDetectedException it will be invisible to users and code that already handle such deadlock exceptions and retry. This exception is thrown instead of awaiting a lock locally on a slave after it was acquired on the master, since applying a lock locally after master granted it should succeed, or fail; it cannot wait for another condition. While this work-around is in place there is more breathing room to figure out the real problem preventing some local locks to be grabbed.

Author:
Mattias Persson
See Also:
Serialized Form

Constructor Summary
LocalDeadlockDetectedException(org.neo4j.kernel.impl.transaction.LockManager lockManager, Transaction tx, Object resource, org.neo4j.kernel.impl.transaction.LockType type)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalDeadlockDetectedException

public LocalDeadlockDetectedException(org.neo4j.kernel.impl.transaction.LockManager lockManager,
                                      Transaction tx,
                                      Object resource,
                                      org.neo4j.kernel.impl.transaction.LockType type)


Copyright © 2002-2014 The Neo4j Graph Database Project. All Rights Reserved.