Bug 1181715

Summary: ManagedConnectionFactory fails to lookup the datasource because it is not yet started
Product: [JBoss] JBoss Data Grid 6 Reporter: Jakub Markos <jmarkos>
Component: ServerAssignee: Tristan Tarrant <ttarrant>
Status: CLOSED DUPLICATE QA Contact: Martin Gencur <mgencur>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4.0CC: jdg-bugs, rmarwaha
Target Milestone: ---   
Target Release: 6.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-15 12:46:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
server logs
none
server config none

Description Jakub Markos 2015-01-13 16:13:01 UTC
Created attachment 979666 [details]
server logs

In 6.4.0.CR1 the jdbc tests  (previously the jdbc tests weren't running because of a different issue, so this is not necessarily new) sometimes fail (like 1/5, found only on rhel7/window) because of this error:

ERROR [org.infinispan.persistence.jdbc.connectionfactory.ManagedConnectionFactory] (MSC service thread 1-2) ISPN008016: Could not lookup connection with datasource java:jboss/datasources/JdbcDS: javax.naming.NameNotFoundException: Error looking up datasources/JdbcDS, service service jboss.naming.context.java.jboss.datasources.JdbcDS is not started

From the logs the datasource is not bounded at the time infinispan tries to look it up:
10:39:35,203 ERROR [org.infinispan.persistence.jdbc.connectionfactory.ManagedConnectionFactory] (MSC service thread 1-2) ISPN008016: Could not lookup connection with datasource java:jboss/datasources/JdbcDS: javax.naming.NameNotFoundException: Error looking up datasources/JdbcDS, service service jboss.naming.context.java.jboss.datasources.JdbcDS is not started

10:39:35,354 TRACE [org.jboss.as.naming] (MSC service thread 1-1) Bound resource datasources/JdbcDS into naming store org.jboss.as.naming.WritableServiceBasedNamingStore@3ea4be02 (service name service jboss.naming.context.java.jboss.datasources.JdbcDS)
10:39:35,376 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:jboss/datasources/JdbcDS]

Attached are the logs from a failed/notfailed runs. To reproduce, start h2:

java -cp h2-1.4.180.redhat-3.jar org.h2.tools.Server  -tcp -tcpPort 9092 -tcpAllowOthers

and then start the server with the attached config.

Comment 1 Jakub Markos 2015-01-13 16:13:29 UTC
Created attachment 979667 [details]
server config

Comment 3 Tristan Tarrant 2015-01-14 14:08:30 UTC
We need to check if there is an existing issue with EAP

Comment 4 Richa 2015-04-15 12:46:46 UTC

*** This bug has been marked as a duplicate of bug 1067916 ***