Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-2617

[GSS](7.3.z) string-keyed-jdbc-store datasource not logging dependency issues

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • JDG 7.2.3 GA, JDG 7.3 GA
    • Server
    • None
    • Hide

      Add this cache to infinispan subsystem in RHDG 7.3 / 7.2.3 , where the MyDS is not defined in the datasources subsystem and start JDG and it will fail with errors.

                      <distributed-cache name="myCache" owners="2" segments="20">
                          <locking isolation="READ_COMMITTED" striping="false" acquire-timeout="30000" concurrency-level="1000"/>
                          <transaction mode="NONE"/>
                          <compatibility enabled="false"/>
                          <string-keyed-jdbc-store name="STRING_KEYED_JDBC_STORE" datasource="java:jboss/datasources/MyDS" shared="false" preload="false" passivation="false" fetch-state="true" purge="false">
                              <string-keyed-table prefix="JDG">
                                  <id-column name="id" type="VARCHAR(255)"/>
                                  <data-column name="datum" type="BLOB"/>
                                  <timestamp-column name="version" type="NUMBER"/>
                              </string-keyed-table>
                          </string-keyed-jdbc-store>
                          <indexing index="ALL">
                              <property name="default.directory_provider">
                                  ram
                              </property>
                          </indexing>
                      </distributed-cache>
      
      Show
      Add this cache to infinispan subsystem in RHDG 7.3 / 7.2.3 , where the MyDS is not defined in the datasources subsystem and start JDG and it will fail with errors. <distributed-cache name= "myCache" owners= "2" segments= "20" > <locking isolation= "READ_COMMITTED" striping= " false " acquire-timeout= "30000" concurrency-level= "1000" /> <transaction mode= "NONE" /> <compatibility enabled= " false " /> <string-keyed-jdbc-store name= "STRING_KEYED_JDBC_STORE" datasource= "java:jboss/datasources/MyDS" shared= " false " preload= " false " passivation= " false " fetch-state= " true " purge= " false " > <string-keyed-table prefix= "JDG" > <id-column name= "id" type= "VARCHAR(255)" /> <data-column name= "datum" type= "BLOB" /> <timestamp-column name= "version" type= "NUMBER" /> </string-keyed-table> </string-keyed-jdbc-store> <indexing index= "ALL" > <property name= " default .directory_provider" > ram </property> </indexing> </distributed-cache>

    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

          Activity

            People

              ttarrant@redhat.com Tristan Tarrant
              rhn-support-bmaxwell Brad Maxwell
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: