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

TimeoutException with 2 or more nodes when there are Entity inserts, updates or removes.

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Deferred
    • Affects Version/s: 4.2.0.CR3
    • Fix Version/s: None
    • Component/s: State Transfer
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      I join a zip file of my maven project which I run under Eclipse Helios.

      As you will see, I use the default configuration of InfiniSpan.
      I have tested with no L2 cache (all is good) and with Infinispan L2 cache (all is bad).
      I have tested with Hsqldb and MySql databases (my tests encounters the same Locks apparently).
      I have tested with 8 or 32 threads, and for 10 or 1000 requets per thread
      (cf. lines 19-23 in src/test/java/infiniSpanTest/Runner.java).

      Don't expect good performances ... I have added a lot of calls
      to System.out.println() to show my threads running (and waiting).

      Running the test :
      ------------------
      You can run the Hsqldb test by :
      starting an Hsqldb database with startHsqldb.bat
      start the first node with InfiniSpanRun-1.launch
      start the second node with InfiniSpanRun-2.launch

      With a MySql database, you must obviously start this database
      and you must empty tables before running the test nodes
      (in case of a previous test didn't finished) :
      start the first node with InfiniSpanRun-1.launch
      start the second node with InfiniSpanRun-2.launch

      With Hsqldb or MySql database configuration :
      ---------------------------------------------
      If you want to test with MySql, you must update the following files :
      src/main/java/META-INF/persistence.xml
      change hibernate.dialect
      conf/openejb.xml
      change JdbcDriver
      change JdbcUrl
      change UserName
      change Password
      change ValidationQuery

      With or without infinispan configuration :
      ------------------------------------------
      If you want to test without Infinispan, you must update the following files :
      src/main/java/META-INF/persistence.xml
      uncomment the pêrsistence unit without cache
      comment the persistence unit with cache

      Show
      I join a zip file of my maven project which I run under Eclipse Helios. As you will see, I use the default configuration of InfiniSpan. I have tested with no L2 cache (all is good) and with Infinispan L2 cache (all is bad). I have tested with Hsqldb and MySql databases (my tests encounters the same Locks apparently). I have tested with 8 or 32 threads, and for 10 or 1000 requets per thread (cf. lines 19-23 in src/test/java/infiniSpanTest/Runner.java). Don't expect good performances ... I have added a lot of calls to System.out.println() to show my threads running (and waiting). Running the test : ------------------ You can run the Hsqldb test by : starting an Hsqldb database with startHsqldb.bat start the first node with InfiniSpanRun-1.launch start the second node with InfiniSpanRun-2.launch With a MySql database, you must obviously start this database and you must empty tables before running the test nodes (in case of a previous test didn't finished) : start the first node with InfiniSpanRun-1.launch start the second node with InfiniSpanRun-2.launch With Hsqldb or MySql database configuration : --------------------------------------------- If you want to test with MySql, you must update the following files : src/main/java/META-INF/persistence.xml change hibernate.dialect conf/openejb.xml change JdbcDriver change JdbcUrl change UserName change Password change ValidationQuery With or without infinispan configuration : ------------------------------------------ If you want to test without Infinispan, you must update the following files : src/main/java/META-INF/persistence.xml uncomment the pêrsistence unit without cache comment the persistence unit with cache

      Description

      Hello,

      I have some difficulties to run more than one Node
      with Infinispan as a JPA Level2 cache (default configuration)
      with Hibernate as JPA provider and
      with OpenEjb as JEE container.

      There are a lot of Locks between Nodes when I try to insert entities,
      even if each Node insert entities with a unique ID.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  galder.zamarreno Galder Zamarreño
                  Reporter:
                  cyrille Cyrille Charron
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: