java.lang.AssertionError: LockID(@1046), Level: READ (1)^M Holders (0)^M Wait Set (0)^M Pending lock requests (5)^M Request@16023954[ClientID[0],ThreadID=[55],level=WRITE (2)]^M Request@6736114[ClientID[1],ThreadID=[49],level=READ (1)]^M Request@1215270[ClientID[0],ThreadID=[30],level=READ (1)]^M Request@23957434[ClientID[0],ThreadID=[12],level=READ (1)]^M Request@32977775[ClientID[1],ThreadID=[5],level=WRITE (2)]^M : This lock is not held in this ServerThreadContext ! Locks Held = []

Terracotta | bvanberg | 9 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Terracotta Server Crashes

    Terracotta | 9 years ago | bvanberg
    java.lang.AssertionError: LockID(@1046), Level: READ (1)^M Holders (0)^M Wait Set (0)^M Pending lock requests (5)^M Request@16023954[ClientID[0],ThreadID=[55],level=WRITE (2)]^M Request@6736114[ClientID[1],ThreadID=[49],level=READ (1)]^M Request@1215270[ClientID[0],ThreadID=[30],level=READ (1)]^M Request@23957434[ClientID[0],ThreadID=[12],level=READ (1)]^M Request@32977775[ClientID[1],ThreadID=[5],level=WRITE (2)]^M : This lock is not held in this ServerThreadContext ! Locks Held = []
  2. 0

    java.lang.AssertionError: Assert Failed : ServerThreadContext@1883389[ServerThreadID{ClientID[0],ThreadID=[1]}](HELD-LOCKS={[]}, WAITING-ON={ LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)] }) : old = LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)] : new = LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)] at com.tc.objectserver.lockmanager.impl.ServerThreadContext.setWaitingOn(ServerThreadContext.java:82) at com.tc.objectserver.lockmanager.impl.Lock.addPending(Lock.java:357) at com.tc.objectserver.lockmanager.impl.Lock.addPendingTryLockRequest(Lock.java:328) at com.tc.objectserver.lockmanager.impl.Lock.queueRequest(Lock.java:291) at com.tc.objectserver.lockmanager.impl.Lock.requestLock(Lock.java:252) at com.tc.objectserver.lockmanager.impl.Lock.tryRequestLock(Lock.java:201) at com.tc.objectserver.lockmanager.impl.LockManagerImpl.basicRequestLock(LockManagerImpl.java:196) at com.tc.objectserver.lockmanager.impl.LockManagerImpl.requestLock(LockManagerImpl.java:180) at com.tc.objectserver.lockmanager.impl.LockManagerImpl.tryRequestLock(LockManagerImpl.java:168) at com.tc.objectserver.handler.RequestLockUnLockHandler.handleEvent(RequestLockUnLockHandler.java:39) at com.tc.async.impl.StageImpl$WorkerThread.run(StageImpl.java:142) Attached is a repro case - download to local directory. $ javac Main.java $ start-tc-server.sh $ dso-java Main $ dso-java Main on second dso invocation, server will assert.

    Terracotta Project Issue Tracker | 9 years ago | Taylor Gautier
    java.lang.AssertionError: Assert Failed : ServerThreadContext@1883389[ServerThreadID{ClientID[0],ThreadID=[1]}](HELD-LOCKS={[]}, WAITING-ON={ LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)] }) : old = LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)] : new = LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)]
  3. 0

    java.lang.AssertionError: Assert Failed : ServerThreadContext@1883389[ServerThreadID{ClientID[0],ThreadID=[1]}](HELD-LOCKS={[]}, WAITING-ON={ LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)] }) : old = LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)] : new = LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)] at com.tc.objectserver.lockmanager.impl.ServerThreadContext.setWaitingOn(ServerThreadContext.java:82) at com.tc.objectserver.lockmanager.impl.Lock.addPending(Lock.java:357) at com.tc.objectserver.lockmanager.impl.Lock.addPendingTryLockRequest(Lock.java:328) at com.tc.objectserver.lockmanager.impl.Lock.queueRequest(Lock.java:291) at com.tc.objectserver.lockmanager.impl.Lock.requestLock(Lock.java:252) at com.tc.objectserver.lockmanager.impl.Lock.tryRequestLock(Lock.java:201) at com.tc.objectserver.lockmanager.impl.LockManagerImpl.basicRequestLock(LockManagerImpl.java:196) at com.tc.objectserver.lockmanager.impl.LockManagerImpl.requestLock(LockManagerImpl.java:180) at com.tc.objectserver.lockmanager.impl.LockManagerImpl.tryRequestLock(LockManagerImpl.java:168) at com.tc.objectserver.handler.RequestLockUnLockHandler.handleEvent(RequestLockUnLockHandler.java:39) at com.tc.async.impl.StageImpl$WorkerThread.run(StageImpl.java:142) Attached is a repro case - download to local directory. $ javac Main.java $ start-tc-server.sh $ dso-java Main $ dso-java Main on second dso invocation, server will assert.

    Terracotta Project Issue Tracker | 9 years ago | Taylor Gautier
    java.lang.AssertionError: Assert Failed : ServerThreadContext@1883389[ServerThreadID{ClientID[0],ThreadID=[1]}](HELD-LOCKS={[]}, WAITING-ON={ LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)] }) : old = LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)] : new = LockID(@1003), Level: WRITE (2) Holders (1) Holder@12289561[ClientID[1],ThreadID=[-9223372036854775808],level=WRITE (2),timeout=120000] Wait Set (0) Pending lock requests (1) Request@190281[ClientID[0],ThreadID=[1],level=READ (1)]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    This came from a forum thread. http://forums.terracotta.org/forums/posts/list/5109.page Server dies with this exception. 2011-03-10 00:31:07,215 INFO - Terracotta Server instance has started up as ACTI VE node on 0.0.0.0:9510 successfully, and is now ready for work. java.lang.AssertionError: ManagedObjectImpl +--> identityHashCode: 53445334 +--> id: ObjectID=[2119] +--> className: com.terracotta.toolkit.collections.ConcurrentDistributedMapD so +--> version:664632 +--> state: MapManagedObjectState | +--> references: TCPersistableMap(2119)={ Map.size() = 1173, delta.size () = 1, removeCount = 0 } +--> isDirty:true +--> isNew:false +--> isReferenced:true +--> next: false prev: false is DIRTY at com.tc.objectserver.impl.ObjectManagerImpl.removeReferenceIfNecessary (ObjectManagerImpl.java:796) at com.tc.objectserver.impl.ObjectManagerImpl.basicRelease(ObjectManager Impl.java:760) at com.tc.objectserver.impl.ObjectManagerImpl.releaseAllAndCommit(Object ManagerImpl.java:661) at com.tc.objectserver.tx.ServerTransactionManagerImpl.commit(ServerTran sactionManagerImpl.java:387) at com.tc.objectserver.handler.CommitTransactionChangeHandler.handleEven t(CommitTransactionChangeHandler.java:31) at com.tc.async.impl.StageImpl$WorkerThread.run(StageImpl.java:127)

    Terracotta Project Issue Tracker | 6 years ago | Saravanan Subbiah
    java.lang.AssertionError: ManagedObjectImpl +--> identityHashCode: 53445334 +--> id: ObjectID=[2119] +--> className: com.terracotta.toolkit.collections.ConcurrentDistributedMapD so +--> version:664632 +--> state: MapManagedObjectState | +--> references: TCPersistableMap(2119)={ Map.size() = 1173, delta.size () = 1, removeCount = 0 } +--> isDirty:true +--> isNew:false +--> isReferenced:true +--> next: false prev: false is DIRTY at com.tc.objectserver.impl.ObjectManagerImpl.removeReferenceIfNecessary (ObjectManagerImpl.java:796) at com.tc.objectserver.impl.ObjectManagerImpl.basicRelease(ObjectManager Impl.java:760) at com.tc.objectserver.impl.ObjectManagerImpl.releaseAllAndCommit(Object ManagerImpl.java:661) at com.tc.objectserver.tx.ServerTransactionManagerImpl.commit(ServerTran sactionManagerImpl.java:387) at com.tc.objectserver.handler.CommitTransactionChangeHandler.handleEven t(CommitTransactionChangeHandler.java:31)

    Root Cause Analysis

    1. java.lang.AssertionError

      LockID(@1046), Level: READ (1)^M Holders (0)^M Wait Set (0)^M Pending lock requests (5)^M Request@16023954[ClientID[0],ThreadID=[55],level=WRITE (2)]^M Request@6736114[ClientID[1],ThreadID=[49],level=READ (1)]^M Request@1215270[ClientID[0],ThreadID=[30],level=READ (1)]^M Request@23957434[ClientID[0],ThreadID=[12],level=READ (1)]^M Request@32977775[ClientID[1],ThreadID=[5],level=WRITE (2)]^M : This lock is not held in this ServerThreadContext ! Locks Held = []

      at com.tc.objectserver.lockmanager.impl.ServerThreadContext.removeLock()
    2. com.tc.objectserver
      RequestLockUnLockHandler.handleEvent
      1. com.tc.objectserver.lockmanager.impl.ServerThreadContext.removeLock(ServerThreadContext.java:71)
      2. com.tc.objectserver.lockmanager.impl.Lock.removeCurrentHold(Lock.java:883)
      3. com.tc.objectserver.lockmanager.impl.LockManagerImpl.basicUnlock(LockManagerImpl.java:368)
      4. com.tc.objectserver.lockmanager.impl.LockManagerImpl.unlock(LockManagerImpl.java:249)
      5. com.tc.objectserver.handler.RequestLockUnLockHandler.handleEvent(RequestLockUnLockHandler.java:44)
      5 frames
    3. com.tc.async
      StageImpl$WorkerThread.run
      1. com.tc.async.impl.StageImpl$WorkerThread.run(StageImpl.java:142)
      1 frame