com.hazelcast.transaction.TransactionException: Transaction couldn't obtain lock for the key: HeapData{type=-11, hashCode=-1899369607, partitionHash=-1899369607, totalSize=48, dataSize=40, heapCost=68}

GitHub | dmitrymz | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    getForUpdate: Transaction couldn't obtain lock for the key

    GitHub | 6 months ago | dmitrymz
    com.hazelcast.transaction.TransactionException: Transaction couldn't obtain lock for the key: HeapData{type=-11, hashCode=-1899369607, partitionHash=-1899369607, totalSize=48, dataSize=40, heapCost=68}

    1 unregistered visitors

    Root Cause Analysis

    1. com.hazelcast.transaction.TransactionException

      Transaction couldn't obtain lock for the key: HeapData{type=-11, hashCode=-1899369607, partitionHash=-1899369607, totalSize=48, dataSize=40, heapCost=68}

      at com.hazelcast.map.impl.tx.TransactionalMapProxySupport.lockAndGet()
    2. com.hazelcast.map
      TransactionalMapProxy.getForUpdate
      1. com.hazelcast.map.impl.tx.TransactionalMapProxySupport.lockAndGet(TransactionalMapProxySupport.java:270)[hazelcast-3.6.4.jar:3.6.4]
      2. com.hazelcast.map.impl.tx.TransactionalMapProxySupport.getForUpdateInternal(TransactionalMapProxySupport.java:117)[hazelcast-3.6.4.jar:3.6.4]
      3. com.hazelcast.map.impl.tx.TransactionalMapProxy.getForUpdate(TransactionalMapProxy.java:124)[hazelcast-3.6.4.jar:3.6.4]
      3 frames
    3. com.hazelcast.client
      AbstractMessageTask.run
      1. com.hazelcast.client.impl.protocol.task.transactionalmap.TransactionalMapGetForUpdateMessageTask.innerCall(TransactionalMapGetForUpdateMessageTask.java:43)[hazelcast-3.6.4.jar:3.6.4]
      2. com.hazelcast.client.impl.protocol.task.AbstractTransactionalMessageTask.call(AbstractTransactionalMessageTask.java:34)[hazelcast-3.6.4.jar:3.6.4]
      3. com.hazelcast.client.impl.protocol.task.AbstractCallableMessageTask.processMessage(AbstractCallableMessageTask.java:34)[hazelcast-3.6.4.jar:3.6.4]
      4. com.hazelcast.client.impl.protocol.task.AbstractMessageTask.initializeAndProcessMessage(AbstractMessageTask.java:118)[hazelcast-3.6.4.jar:3.6.4]
      5. com.hazelcast.client.impl.protocol.task.AbstractMessageTask.run(AbstractMessageTask.java:98)[hazelcast-3.6.4.jar:3.6.4]
      5 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_20]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_20]
      3. java.lang.Thread.run(Thread.java:745)[na:1.8.0_20]
      3 frames
    5. Hazelcast
      HazelcastManagedThread.run
      1. com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:76)[hazelcast-3.6.4.jar:3.6.4]
      2. com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:92)[hazelcast-3.6.4.jar:3.6.4]
      2 frames