com.sleepycat.je.DeadlockException: (JE 3.2.23) Lock expired. Locker 30970875_GC_Txn: waited for lock on database=objects node=1464631 type=WRITE grant=WAIT_NEW timeoutMillis=180000 startTime=1194233786839 endTime=1194234144712 Owners: [<LockInfo locker="30970876_WorkerThread(managed_object_flush_stage,3)_Txn" type="WRITE"/>] Waiters: []

Terracotta Project Issue Tracker | Saravanan Subbiah | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    This is from the forum post http://forums.terracotta.org/forums/posts/list/588.page From the logs : 2007-11-04 19:42:24,540 [WorkerThread(managed_object_flush_stage,3)] ERROR com.tc.server.TCServerMain - Thread:Thread[WorkerThread(managed_object_flush_stage,3),5,TC Thread Group] got an uncaught exception. About to sleep then exit. com.tc.objectserver.persistence.sleepycat.TCDatabaseException: com.sleepycat.je.DeadlockException: (JE 3.2.23) Lock expired. Locker 30970876_WorkerThread(managed_object_flush_stage,3)_Txn: waited for lock on database=objects node=3409750 type=WRITE grant=WAIT_NEW timeoutMillis=180000 startTime=1194233786667 endTime=1194234144540 Owners: [<LockInfo locker="30970875_GC_Txn" type="WRITE"/>] Waiters: [] Transaction 30970875_GC_Txn waits for node 1464631 Transaction 30970876_WorkerThread(managed_object_flush_stage,3)_Txn owns 1464631 <LockInfo locker="30970876_WorkerThread(managed_object_flush_stage,3)_Txn" type="WRITE"/> Transaction 30970876_WorkerThread(managed_object_flush_stage,3)_Txn waits for node 3409750 at com.tc.objectserver.persistence.sleepycat.ManagedObjectPersistorImpl.basicSaveObject(ManagedObjectPersistorImpl.java:280) at com.tc.objectserver.persistence.sleepycat.ManagedObjectPersistorImpl.saveAllObjects(ManagedObjectPersistorImpl.java:315) at com.tc.objectserver.impl.PersistentManagedObjectStore.commitAllObjects(PersistentManagedObjectStore.java:81) at com.tc.objectserver.impl.ObjectManagerImpl.flushAll(ObjectManagerImpl.java:614) at com.tc.objectserver.impl.ObjectManagerImpl.flushAndEvict(ObjectManagerImpl.java:801) at com.tc.objectserver.handler.ManagedObjectFlushHandler.handleEvent(ManagedObjectFlushHandler.java:22) at com.tc.async.impl.StageImpl$WorkerThread.run(StageImpl.java:140) Caused by: com.sleepycat.je.DeadlockException: (JE 3.2.23) Lock expired. Locker 30970876_WorkerThread(managed_object_flush_stage,3)_Txn: waited for lock on database=objects node=3409750 type=WRITE grant=WAIT_NEW timeoutMillis=180000 startTime=1194233786667 endTime=1194234144540 Owners: [<LockInfo locker="30970875_GC_Txn" type="WRITE"/>] Waiters: [] Transaction 30970875_GC_Txn waits for node 1464631 Transaction 30970876_WorkerThread(managed_object_flush_stage,3)_Txn owns 1464631 <LockInfo locker="30970876_WorkerThread(managed_object_flush_stage,3)_Txn" type="WRITE"/> Transaction 30970876_WorkerThread(managed_object_flush_stage,3)_Txn waits for node 3409750 at com.sleepycat.je.txn.LockManager.lock(LockManager.java:266) at com.sleepycat.je.txn.Txn.lockInternal(Txn.java:295) at com.sleepycat.je.txn.Locker.lock(Locker.java:257) at com.sleepycat.je.dbi.CursorImpl.lockLNDeletedAllowed(CursorImpl.java:2349) at com.sleepycat.je.tree.Tree.insert(Tree.java:2567) at com.sleepycat.je.dbi.CursorImpl.putLN(CursorImpl.java:988) at com.sleepycat.je.dbi.CursorImpl.put(CursorImpl.java:1011) at com.sleepycat.je.Cursor.putAllowPhantoms(Cursor.java:861) at com.sleepycat.je.Cursor.putNoNotify(Cursor.java:798) at com.sleepycat.je.Cursor.putInternal(Cursor.java:752) at com.sleepycat.je.Database.putInternal(Database.java:662) at com.sleepycat.je.Database.put(Database.java:608) at com.tc.objectserver.persistence.sleepycat.ManagedObjectPersistorImpl.basicSaveObject(ManagedObjectPersistorImpl.java:270) ... 6 more 2007-11-04 19:42:24,712 [GC] ERROR com.tc.server.TCServerMain - Thread:Thread[GC,5,TC Thread Group] got an uncaught exception. About to sleep then exit. com.sleepycat.je.DeadlockException: (JE 3.2.23) Lock expired. Locker 30970875_GC_Txn: waited for lock on database=objects node=1464631 type=WRITE grant=WAIT_NEW timeoutMillis=180000 startTime=1194233786839 endTime=1194234144712 Owners: [<LockInfo locker="30970876_WorkerThread(managed_object_flush_stage,3)_Txn" type="WRITE"/>] Waiters: [] at com.sleepycat.je.txn.LockManager.lock(LockManager.java:266) at com.sleepycat.je.txn.Txn.lockInternal(Txn.java:295) at com.sleepycat.je.txn.Locker.lock(Locker.java:257) at com.sleepycat.je.dbi.CursorImpl.lockLNDeletedAllowed(CursorImpl.java:2349) at com.sleepycat.je.dbi.CursorImpl.lockLN(CursorImpl.java:2271) at com.sleepycat.je.dbi.CursorImpl.searchAndPosition(CursorImpl.java:1963) at com.sleepycat.je.Cursor.searchInternal(Cursor.java:1178) at com.sleepycat.je.Cursor.searchAllowPhantoms(Cursor.java:1148) at com.sleepycat.je.Cursor.search(Cursor.java:1014) at com.sleepycat.je.Database.deleteInternal(Database.java:473) at com.sleepycat.je.Database.delete(Database.java:405) at com.tc.objectserver.persistence.sleepycat.ManagedObjectPersistorImpl.deleteObjectByID(ManagedObjectPersistorImpl.java:358) at com.tc.objectserver.persistence.sleepycat.ManagedObjectPersistorImpl.deleteAllObjectsByID(ManagedObjectPersistorImpl.java:372) at com.tc.objectserver.impl.PersistentManagedObjectStore.removeAllObjectsByIDNow(PersistentManagedObjectStore.java:86) at com.tc.objectserver.impl.ObjectManagerImpl.removeFromStore(ObjectManagerImpl.java:600) at com.tc.objectserver.impl.ObjectManagerImpl.notifyGCComplete(ObjectManagerImpl.java:585) at com.tc.objectserver.core.impl.MarkAndSweepGarbageCollector.gc(MarkAndSweepGarbageCollector.java:176) at com.tc.objectserver.impl.ObjectManagerImpl$1.run(ObjectManagerImpl.java:686) 2007-11-04 19:42:27,556 [CommonShutDownHook - com.tc.object.msg.RequestManagedObjectResponseMessage$1@1142e30] INFO com.tc.net.protocol.TCNetworkMessage - No of times Buffers wasted = 0 Buffers wasted count = 0 2007-11-04 19:42:31,712 [Timer-4] INFO com.terracottatech.console - Server exiting... 2007-11-04 19:42:31,712 [Timer-4] INFO com.terracottatech.console - Server exiting...

    Terracotta Project Issue Tracker | 9 years ago | Saravanan Subbiah
    com.sleepycat.je.DeadlockException: (JE 3.2.23) Lock expired. Locker 30970875_GC_Txn: waited for lock on database=objects node=1464631 type=WRITE grant=WAIT_NEW timeoutMillis=180000 startTime=1194233786839 endTime=1194234144712 Owners: [<LockInfo locker="30970876_WorkerThread(managed_object_flush_stage,3)_Txn" type="WRITE"/>] Waiters: []
  2. 0

    This is from the forum post http://forums.terracotta.org/forums/posts/list/588.page From the logs : 2007-11-04 19:42:24,540 [WorkerThread(managed_object_flush_stage,3)] ERROR com.tc.server.TCServerMain - Thread:Thread[WorkerThread(managed_object_flush_stage,3),5,TC Thread Group] got an uncaught exception. About to sleep then exit. com.tc.objectserver.persistence.sleepycat.TCDatabaseException: com.sleepycat.je.DeadlockException: (JE 3.2.23) Lock expired. Locker 30970876_WorkerThread(managed_object_flush_stage,3)_Txn: waited for lock on database=objects node=3409750 type=WRITE grant=WAIT_NEW timeoutMillis=180000 startTime=1194233786667 endTime=1194234144540 Owners: [<LockInfo locker="30970875_GC_Txn" type="WRITE"/>] Waiters: [] Transaction 30970875_GC_Txn waits for node 1464631 Transaction 30970876_WorkerThread(managed_object_flush_stage,3)_Txn owns 1464631 <LockInfo locker="30970876_WorkerThread(managed_object_flush_stage,3)_Txn" type="WRITE"/> Transaction 30970876_WorkerThread(managed_object_flush_stage,3)_Txn waits for node 3409750 at com.tc.objectserver.persistence.sleepycat.ManagedObjectPersistorImpl.basicSaveObject(ManagedObjectPersistorImpl.java:280) at com.tc.objectserver.persistence.sleepycat.ManagedObjectPersistorImpl.saveAllObjects(ManagedObjectPersistorImpl.java:315) at com.tc.objectserver.impl.PersistentManagedObjectStore.commitAllObjects(PersistentManagedObjectStore.java:81) at com.tc.objectserver.impl.ObjectManagerImpl.flushAll(ObjectManagerImpl.java:614) at com.tc.objectserver.impl.ObjectManagerImpl.flushAndEvict(ObjectManagerImpl.java:801) at com.tc.objectserver.handler.ManagedObjectFlushHandler.handleEvent(ManagedObjectFlushHandler.java:22) at com.tc.async.impl.StageImpl$WorkerThread.run(StageImpl.java:140) Caused by: com.sleepycat.je.DeadlockException: (JE 3.2.23) Lock expired. Locker 30970876_WorkerThread(managed_object_flush_stage,3)_Txn: waited for lock on database=objects node=3409750 type=WRITE grant=WAIT_NEW timeoutMillis=180000 startTime=1194233786667 endTime=1194234144540 Owners: [<LockInfo locker="30970875_GC_Txn" type="WRITE"/>] Waiters: [] Transaction 30970875_GC_Txn waits for node 1464631 Transaction 30970876_WorkerThread(managed_object_flush_stage,3)_Txn owns 1464631 <LockInfo locker="30970876_WorkerThread(managed_object_flush_stage,3)_Txn" type="WRITE"/> Transaction 30970876_WorkerThread(managed_object_flush_stage,3)_Txn waits for node 3409750 at com.sleepycat.je.txn.LockManager.lock(LockManager.java:266) at com.sleepycat.je.txn.Txn.lockInternal(Txn.java:295) at com.sleepycat.je.txn.Locker.lock(Locker.java:257) at com.sleepycat.je.dbi.CursorImpl.lockLNDeletedAllowed(CursorImpl.java:2349) at com.sleepycat.je.tree.Tree.insert(Tree.java:2567) at com.sleepycat.je.dbi.CursorImpl.putLN(CursorImpl.java:988) at com.sleepycat.je.dbi.CursorImpl.put(CursorImpl.java:1011) at com.sleepycat.je.Cursor.putAllowPhantoms(Cursor.java:861) at com.sleepycat.je.Cursor.putNoNotify(Cursor.java:798) at com.sleepycat.je.Cursor.putInternal(Cursor.java:752) at com.sleepycat.je.Database.putInternal(Database.java:662) at com.sleepycat.je.Database.put(Database.java:608) at com.tc.objectserver.persistence.sleepycat.ManagedObjectPersistorImpl.basicSaveObject(ManagedObjectPersistorImpl.java:270) ... 6 more 2007-11-04 19:42:24,712 [GC] ERROR com.tc.server.TCServerMain - Thread:Thread[GC,5,TC Thread Group] got an uncaught exception. About to sleep then exit. com.sleepycat.je.DeadlockException: (JE 3.2.23) Lock expired. Locker 30970875_GC_Txn: waited for lock on database=objects node=1464631 type=WRITE grant=WAIT_NEW timeoutMillis=180000 startTime=1194233786839 endTime=1194234144712 Owners: [<LockInfo locker="30970876_WorkerThread(managed_object_flush_stage,3)_Txn" type="WRITE"/>] Waiters: [] at com.sleepycat.je.txn.LockManager.lock(LockManager.java:266) at com.sleepycat.je.txn.Txn.lockInternal(Txn.java:295) at com.sleepycat.je.txn.Locker.lock(Locker.java:257) at com.sleepycat.je.dbi.CursorImpl.lockLNDeletedAllowed(CursorImpl.java:2349) at com.sleepycat.je.dbi.CursorImpl.lockLN(CursorImpl.java:2271) at com.sleepycat.je.dbi.CursorImpl.searchAndPosition(CursorImpl.java:1963) at com.sleepycat.je.Cursor.searchInternal(Cursor.java:1178) at com.sleepycat.je.Cursor.searchAllowPhantoms(Cursor.java:1148) at com.sleepycat.je.Cursor.search(Cursor.java:1014) at com.sleepycat.je.Database.deleteInternal(Database.java:473) at com.sleepycat.je.Database.delete(Database.java:405) at com.tc.objectserver.persistence.sleepycat.ManagedObjectPersistorImpl.deleteObjectByID(ManagedObjectPersistorImpl.java:358) at com.tc.objectserver.persistence.sleepycat.ManagedObjectPersistorImpl.deleteAllObjectsByID(ManagedObjectPersistorImpl.java:372) at com.tc.objectserver.impl.PersistentManagedObjectStore.removeAllObjectsByIDNow(PersistentManagedObjectStore.java:86) at com.tc.objectserver.impl.ObjectManagerImpl.removeFromStore(ObjectManagerImpl.java:600) at com.tc.objectserver.impl.ObjectManagerImpl.notifyGCComplete(ObjectManagerImpl.java:585) at com.tc.objectserver.core.impl.MarkAndSweepGarbageCollector.gc(MarkAndSweepGarbageCollector.java:176) at com.tc.objectserver.impl.ObjectManagerImpl$1.run(ObjectManagerImpl.java:686) 2007-11-04 19:42:27,556 [CommonShutDownHook - com.tc.object.msg.RequestManagedObjectResponseMessage$1@1142e30] INFO com.tc.net.protocol.TCNetworkMessage - No of times Buffers wasted = 0 Buffers wasted count = 0 2007-11-04 19:42:31,712 [Timer-4] INFO com.terracottatech.console - Server exiting... 2007-11-04 19:42:31,712 [Timer-4] INFO com.terracottatech.console - Server exiting...

    Terracotta Project Issue Tracker | 9 years ago | Saravanan Subbiah
    com.sleepycat.je.DeadlockException: (JE 3.2.23) Lock expired. Locker 30970875_GC_Txn: waited for lock on database=objects node=1464631 type=WRITE grant=WAIT_NEW timeoutMillis=180000 startTime=1194233786839 endTime=1194234144712 Owners: [<LockInfo locker="30970876_WorkerThread(managed_object_flush_stage,3)_Txn" type="WRITE"/>] Waiters: []
  3. 0

    Deadlocks and more on a large database.

    Oracle Community | 9 years ago | 529815
    com.sleepycat.je.DeadlockException: (JE 3.2.68) Lock expired. Locker -1_HPI-executor707_ThreadLocker: waited for lock on database=postoptcache node=4211902 type=WRITE grant=WAIT_NEW timeoutMillis=500 startTime=1216821354475 endTime=1216821354977 Owners: [<LockInfo locker="-1_HPI-executor825_ThreadLocker" type="WRITE"/>] Waiters: []
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.sleepycat.je.DeadlockException

      (JE 3.2.23) Lock expired. Locker 30970875_GC_Txn: waited for lock on database=objects node=1464631 type=WRITE grant=WAIT_NEW timeoutMillis=180000 startTime=1194233786839 endTime=1194234144712 Owners: [<LockInfo locker="30970876_WorkerThread(managed_object_flush_stage,3)_Txn" type="WRITE"/>] Waiters: []

      at com.sleepycat.je.txn.LockManager.lock()
    2. Berkeley DB Java Edition
      Database.delete
      1. com.sleepycat.je.txn.LockManager.lock(LockManager.java:266)
      2. com.sleepycat.je.txn.Txn.lockInternal(Txn.java:295)
      3. com.sleepycat.je.txn.Locker.lock(Locker.java:257)
      4. com.sleepycat.je.dbi.CursorImpl.lockLNDeletedAllowed(CursorImpl.java:2349)
      5. com.sleepycat.je.dbi.CursorImpl.lockLN(CursorImpl.java:2271)
      6. com.sleepycat.je.dbi.CursorImpl.searchAndPosition(CursorImpl.java:1963)
      7. com.sleepycat.je.Cursor.searchInternal(Cursor.java:1178)
      8. com.sleepycat.je.Cursor.searchAllowPhantoms(Cursor.java:1148)
      9. com.sleepycat.je.Cursor.search(Cursor.java:1014)
      10. com.sleepycat.je.Database.deleteInternal(Database.java:473)
      11. com.sleepycat.je.Database.delete(Database.java:405)
      11 frames
    3. com.tc.objectserver
      ObjectManagerImpl$1.run
      1. com.tc.objectserver.persistence.sleepycat.ManagedObjectPersistorImpl.deleteObjectByID(ManagedObjectPersistorImpl.java:358)
      2. com.tc.objectserver.persistence.sleepycat.ManagedObjectPersistorImpl.deleteAllObjectsByID(ManagedObjectPersistorImpl.java:372)
      3. com.tc.objectserver.impl.PersistentManagedObjectStore.removeAllObjectsByIDNow(PersistentManagedObjectStore.java:86)
      4. com.tc.objectserver.impl.ObjectManagerImpl.removeFromStore(ObjectManagerImpl.java:600)
      5. com.tc.objectserver.impl.ObjectManagerImpl.notifyGCComplete(ObjectManagerImpl.java:585)
      6. com.tc.objectserver.core.impl.MarkAndSweepGarbageCollector.gc(MarkAndSweepGarbageCollector.java:176)
      7. com.tc.objectserver.impl.ObjectManagerImpl$1.run(ObjectManagerImpl.java:686)
      7 frames