Details
-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
JDG 7.2.3 GA, JDG 7.3 GA
-
None
Description
If the string-keyed-jdbc-store datasource does not exist in the datasources subsystem with the same jndi name, then JDG will start with errors but no error indicating what the errors were.
<distributed-cache name=... ... <string-keyed-jdbc-store datasource="java:jboss/datasources/WrongDS" fetch-state="true" preload="false" purge="false" shared="false" passivation="false">
ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: Data Grid 7.2.3 (WildFly Core 2.1.18.Final-redhat-1) started (with errors) in 8886ms - Started 216 of 264 services (1 services failed or missing dependencies, 137 services are lazy, passive or on-demand)
read-boot-errors does not show any issues:
core-service=management:read-boot-errors()
Dumping services, will show 1 PROBLEM service:
/core-service=service-container:dump-services()
Such as :
Service \"jboss.datagrid-infinispan.clustered.myCache\" (class org.jboss.as.clustering.infinispan.subsystem.CacheService) mode ACTIVE state DOWN (PROBLEM) (parent: jboss.as.server-controller) (dependencies: jboss.datagrid-infinispan.clustered.myCache.config, jboss.DeployedCacheStoreFactoryService, jboss.DeployedTaskRegistry, jboss.datagrid-infinispan.DeployedMergePolicyFactory, jboss.datagrid-infinispan.clustered) (has unavailable dependency)
Search for jboss.datagrid-infinispan.clustered.myCache in the services:
Service \"jboss.datagrid-infinispan.clustered.myCache.config\" (class org.jboss.as.clustering.infinispan.subsystem.CacheConfigurationService) mode PASSIVE state DOWN (WAITING) (parent: jboss.as.server-controller) (dependencies: jboss.as.service-module-loader, jboss.data-source.\"jboss.naming.context.java.jboss.datasources.MyDS\", jboss.datagrid-infinispan.clustered) (has unavailable dependency)
This shows that it depends on a datasource, checking in the datasources subsystem for the jndi name: java:jboss/datasources/MyDS , if it does not match exactly such as if it is java:jboss/datasources/MyDs then the cache will fail to start and does not log an error.
Attachments
Issue Links
- links to