[infinispan-issues] [JBoss JIRA] Updated: (ISPN-832) TimeoutException with 2 or more nodes when there are Entity inserts, updates or removes.

Cyrille Charron (JIRA) jira-events at lists.jboss.org
Tue Dec 14 10:29:52 EST 2010


     [ https://issues.jboss.org/browse/ISPN-832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cyrille Charron updated ISPN-832:
---------------------------------

    Steps to Reproduce: 
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


  was:
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





I replaced tabs by spaces, to be more readable.

> TimeoutException with 2 or more nodes when there are Entity inserts, updates or removes.
> ----------------------------------------------------------------------------------------
>
>                 Key: ISPN-832
>                 URL: https://issues.jboss.org/browse/ISPN-832
>             Project: Infinispan
>          Issue Type: Bug
>          Components: State transfer
>    Affects Versions: 4.2.0.CR3
>         Environment: Windows XP + Hibernate 3.6.1-SNAPSHOT + OpenEjb 3.2-SNAPSHOT
>            Reporter: Cyrille Charron
>            Assignee: Galder Zamarreño
>         Attachments: InfiniSpanTest.zip
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the infinispan-issues mailing list