3 Replies Latest reply on Aug 28, 2011 7:12 AM by avi bh

    replication timeout using transaction

    avi bh Newbie

      Hi,

      my recent project requires transactional replicated cache, there for after looking into Hazelcast and EhCache i choose Infinispan which had the right set of features for me.

      I'm using Infinispan 4.2.1 final with 3 caches involved in the transaction (multiple writes to each).

      each cache is configured to sync replication.

      my tests were made with 2 nodes, one node, the producer, is working with transactions (under JBoss server) and the other node, the reciever, is a simple java application.

      each node has the same configuration except for the transaction part.

      everything works ok when running simple tests with minimum writes to the caches.

      the problem starts when doing multiple writes to caches (10+ writes each cache), I get replication timeouts causing heuristic transctions rollback.

      since I had listeners on each cache on each node i noticed that the reciever node actually got the first event but nothing more.

       

      my future cluster will be 10+ node and I dont want to change my current transaction timeout so I decided to change the replication to async mode.

      in this case running the same test was even worse, the nodes recognize each other on JGroups but no replication was done.

      i've added replication queue configuration and still nothing.

       

      note that running 2 simple java applications with high volume of events went well both in sync and async mode with the same configuration as above, except for the transaction part (no transaction). so I assume there is no problem with JGroups or any other configuration.

       

      can someone tell me what am I missing here?