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

Three nodes leading in replication timeout exception.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 4.2.0.CR4
    • Transactions
    • None
    • 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.

      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)
      ...

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

              manik_jira Manik Surtani (Inactive)
              thom28 Thomas Jean (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: