[infinispan-issues] [JBoss JIRA] (ISPN-4049) Race condition during startup if a JDBCstore use the datasource
Divya Mehra (JIRA)
issues at jboss.org
Thu Mar 6 13:41:33 EST 2014
[ https://issues.jboss.org/browse/ISPN-4049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Divya Mehra updated ISPN-4049:
------------------------------
Labels: 630 (was: )
> 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
> Affects Versions: 6.0.1.Final
> Reporter: Wolf-Dieter Fink
> Assignee: Mircea Markus
> Labels: 630
>
> 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