[infinispan-issues] [JBoss JIRA] (ISPN-4049) Race condition during startup if a JDBCstore use the datasource

Wolf-Dieter Fink (JIRA) issues at jboss.org
Fri Feb 21 10:37:47 EST 2014


Wolf-Dieter Fink created ISPN-4049:
--------------------------------------

             Summary: Race condition during startup if a JDBCstore use the datasource
                 Key: ISPN-4049
                 URL: https://issues.jboss.org/browse/ISPN-4049
             Project: Infinispan
          Issue Type: Bug
            Reporter: Wolf-Dieter Fink
            Assignee: Mircea Markus


It looks like that the infinispan subsystem does not have a dependency to the datasource subsystem and both are started in parallel.

Sporadically it happens that the JDBCstore is accessing the datasource for preloading the cache but the datasource is not ready.
The test is a single StringKeyedJdbcStore cache (replicated, preloaded, no eviction)

>From the log it is shown that the DS is bound a couple of millis after the failure:
xx:xx:xx,849 ERROR
Caused by: org.infinispan.CacheException: Unable to start cache loaders
Caused by: org.infinispan.loaders.CacheLoaderException: javax.naming.NameNotFoundException: Error looking up datasources/OracleDS, service service jboss.naming.context.java.jboss.datasources.OracleDS is not started
Caused by: javax.naming.NameNotFoundException: Error looking up datasources/OracleDS, service service jboss.naming.context.java.jboss.datasources.OracleDS is not started

xx:xx:xx,860 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) JBAS010400: Bound data source [java:jboss/datasources/OracleDS]


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the infinispan-issues mailing list