Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-836

Three nodes leading in replication timeout exception.

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: 4.2.0.CR4
    • Fix Version/s: None
    • Component/s: Transactions
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      1/ Launch three times the program ThreeNodesDeadlocks.java.
      2/ The program will wait that three nodes to be launched.
      3/ Each node will print that deadlock detection is activated.
      4/ Each node will try to perform hundred times get and put operations on the same key in a transaction. if a DeadlockDetectedException occurs, then the operation is retried until succeed.
      5/ The last nodes to finish its operation print the total number of operation, that should be 300. But in all cases a replication timeout Eception occurs.

      Show
      1/ Launch three times the program ThreeNodesDeadlocks.java. 2/ The program will wait that three nodes to be launched. 3/ Each node will print that deadlock detection is activated. 4/ Each node will try to perform hundred times get and put operations on the same key in a transaction. if a DeadlockDetectedException occurs, then the operation is retried until succeed. 5/ The last nodes to finish its operation print the total number of operation, that should be 300. But in all cases a replication timeout Eception occurs.

      Description

      Hello,
      after activating deadlock detection with 500 ms of spin duration, i launch a concurrent scenario on three nodes.
      Each node will : begin the transaction, lock the same key, perform a get and increment operation, commit the value.
      If a DeadlockDetectedException occurs, then the transaction rollback and the operation is immedialty retried in a new transaction until succeed.
      Then this exception occurs on two nodes :
      ERROR 15/12/10 15:49:08,791 [ main] interceptors.InvocationContextInterceptor - Execution error:
      org.infinispan.util.concurrent.TimeoutException: Replication timeout for nodeDeadLock-29627
      at org.infinispan.remoting.transport.AbstractTransport.parseResponseAndAddToResponseList(AbstractTransport.java:49)
      ...

        Gliffy Diagrams

          Attachments

          1. AgentManager_InfiniSpan_Config_Generic.xml
            3 kB
          2. log4j_Generic.properties
            0.3 kB
          3. nodeDeadLock-29627.log
            8 kB
          4. nodeDeadLock-33969.log
            8 kB
          5. nodeDeadLock-49482.log
            23 kB
          6. ThreeNodesDeadlocks.java
            4 kB

            Issue Links

              Activity

                People

                • Assignee:
                  manik Manik Surtani
                  Reporter:
                  thom28 Thomas Jean
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: