Jens Reimann created ISPN-10478:
-----------------------------------
Summary: Not creating the "optional" index caches makes the indexed
cache fail to start
Key: ISPN-10478
URL:
https://issues.jboss.org/browse/ISPN-10478
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 9.4.11.Final
Reporter: Jens Reimann
Creating an indexed cache:
{noformat}
<distributed-cache owners="3" mode="SYNC"
remote-timeout="15000" name="deviceManagementCache">
<indexing index="PRIMARY_OWNER">
<property name="default.indexmanager">
org.infinispan.query.indexmanager.InfinispanIndexManager
</property>
</indexing>
</distributed-cache>
{noformat}
And starting the server causes the cache to fail on startup:
{noformat}
17:49:04,826 WARN [org.infinispan.hibernate.search.spi.InfinispanDirectoryProvider] (MSC
service thread 1-1) ISPN026007: Cache 'LuceneIndexesMetadata' required for
indexing has not been configured. Using an internal default configuration.
17:49:04,827 WARN [org.infinispan.hibernate.search.spi.InfinispanDirectoryProvider] (MSC
service thread 1-1) ISPN026007: Cache 'LuceneIndexesData' required for indexing
has not been configured. Using an internal default configuration.
17:49:04,827 WARN [org.infinispan.hibernate.search.spi.InfinispanDirectoryProvider] (MSC
service thread 1-1) ISPN026007: Cache 'LuceneIndexesLocking' required for indexing
has not been configured. Using an internal default configuration.
17:49:04,838 INFO [org.jboss.as.clustering.infinispan]
(CacheStartThread,null,LuceneIndexesData) DGISPN0001: Started LuceneIndexesData cache from
clustered container
17:49:04,842 INFO [org.jboss.as.clustering.infinispan]
(CacheStartThread,null,LuceneIndexesMetadata) DGISPN0001: Started LuceneIndexesMetadata
cache from clustered container
17:49:04,838 INFO [org.jboss.as.clustering.infinispan]
(CacheStartThread,null,LuceneIndexesLocking) DGISPN0001: Started LuceneIndexesLocking
cache from clustered container
17:49:04,898 WARN [org.hibernate.search.indexes.impl.LuceneEmbeddedIndexFamilyImpl] (MSC
service thread 1-1) HSEARCH000075: Configuration setting hibernate.search.lucene_version
was not specified: using LUCENE_CURRENT.
17:49:04,946 INFO [org.infinispan.query.impl.LifecycleManager] (MSC service thread 1-1)
ISPN014003: Registering Query interceptor for cache deviceManagementCache
17:49:04,950 WARN [org.infinispan.configuration.cache.IndexingConfigurationBuilder] (MSC
service thread 1-1) ISPN000403: No indexable classes were defined for this indexed cache;
switching to autodetection (support for autodetection will be removed in Infinispan
10.0).
17:49:04,956 INFO [org.infinispan.factories.TransactionManagerFactory] (MSC service
thread 1-1) ISPN000161: Using a batchMode transaction manager
17:49:04,999 INFO [org.jboss.as.clustering.infinispan] (MSC service thread 1-1)
DGISPN0001: Started deviceManagementCache cache from clustered container
17:49:05,121 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread)
WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "datagrid-infinispan"),
("cache-container" => "clustered"),
("distributed-cache" => "deviceManagementCache")
]) - failure description: {
"WFLYCTL0412: Required services that are not installed:" => [
"jboss.datagrid-infinispan.clustered.LuceneIndexesLocking",
"jboss.datagrid-infinispan.clustered.LuceneIndexesData",
"jboss.datagrid-infinispan.clustered.LuceneIndexesMetadata"
],
"WFLYCTL0180: Services with missing/unavailable dependencies" =>
["jboss.datagrid-infinispan.clustered.deviceManagementCache is missing
[jboss.datagrid-infinispan.clustered.LuceneIndexesMetadata,
jboss.datagrid-infinispan.clustered.LuceneIndexesLocking,
jboss.datagrid-infinispan.clustered.LuceneIndexesData]"]
}
17:49:05,141 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service
status report
WFLYCTL0184: New missing/unsatisfied dependencies:
service jboss.datagrid-infinispan.clustered.LuceneIndexesData (missing) dependents:
[service jboss.datagrid-infinispan.clustered.deviceManagementCache]
service jboss.datagrid-infinispan.clustered.LuceneIndexesLocking (missing)
dependents: [service jboss.datagrid-infinispan.clustered.deviceManagementCache]
service jboss.datagrid-infinispan.clustered.LuceneIndexesMetadata (missing)
dependents: [service jboss.datagrid-infinispan.clustered.deviceManagementCache]
17:49:05,171 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming
server
17:49:05,172 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management
interface listening on
http://0.0.0.0:9990/management
17:49:05,172 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console
listening on
http://0.0.0.0:9990
17:49:05,172 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: Infinispan Server
9.4.11.Final (WildFly Core 6.0.2.Final) started (with errors) in 3807ms - Started 231 of
350 services (1 services failed or missing dependencies, 206 services are lazy, passive or
on-demand)
{noformat}
However, the documentation says that configuring those cases is optional:
{quote}It’s not necessary to redefine the configuration of those 3 cases, Infinispan will
pick sensible defaults. Reasons re-define them would be performance tuning for a specific
scenario, or for example to make them persistent by configuring a cache store.{quote}
And also the log seems to confirm this:
{noformat}
17:49:04,826 WARN [org.infinispan.hibernate.search.spi.InfinispanDirectoryProvider] (MSC
service thread 1-1) ISPN026007: Cache 'LuceneIndexesMetadata' required for
indexing has not been configured. Using an internal default configuration.
17:49:04,827 WARN [org.infinispan.hibernate.search.spi.InfinispanDirectoryProvider] (MSC
service thread 1-1) ISPN026007: Cache 'LuceneIndexesData' required for indexing
has not been configured. Using an internal default configuration.
17:49:04,827 WARN [org.infinispan.hibernate.search.spi.InfinispanDirectoryProvider] (MSC
service thread 1-1) ISPN026007: Cache 'LuceneIndexesLocking' required for indexing
has not been configured. Using an internal default configuration.
{noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)