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

Vitalii Chepeliuk (JIRA) issues at jboss.org
Fri May 22 05:29:20 EDT 2015


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

Vitalii Chepeliuk updated ISPN-4049:
------------------------------------
    Priority: Blocker  (was: Major)


> 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
>            Priority: Blocker
>              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 was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the infinispan-issues mailing list