Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-6355

Server stop doesn't respect cache dependencies

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • None
    • Server
    • None

      Individual caches are exposed as WildFly services, and the server stops them without considering cache dependencies defined in DefaultCacheManager. This means the infinispan-lucene-directory caches can stop before the indexed caches that use them:

      2016-03-09 18:10:41,724 WARN  [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000004: Failure during stop of service jboss.datagrid-infinispan.clustered.repltestcache: org.infinispan.IllegalLifecycleStateException: ISPN000323: Cache 'LuceneIndexesMetadata' is in 'TERMINATED' state and so it does not accept new invocations. Either restart it or recreate the cache container.
              at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:97)
              at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:79)
              at org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:85)
              at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:43)
              at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:99)
              at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:113)
              at org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:85)
              at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:43)
              at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:335)
              at org.infinispan.cache.impl.CacheImpl.get(CacheImpl.java:411)
              at org.infinispan.cache.impl.DecoratedCache.get(DecoratedCache.java:443)
              at org.infinispan.lucene.impl.FileListOperations.getFileList(FileListOperations.java:162)
              at org.infinispan.lucene.impl.FileListOperations.listFilenames(FileListOperations.java:105)
              at org.infinispan.lucene.impl.DirectoryImplementor.list(DirectoryImplementor.java:60)
              at org.infinispan.lucene.impl.DirectoryLucene.listAll(DirectoryLucene.java:128)
              at org.apache.lucene.store.FilterDirectory.listAll(FilterDirectory.java:57)
              at org.apache.lucene.index.IndexFileDeleter.refresh(IndexFileDeleter.java:426)
              at org.apache.lucene.index.IndexWriter.rollbackInternalNoCommit(IndexWriter.java:2099)
              at org.apache.lucene.index.IndexWriter.rollbackInternal(IndexWriter.java:2041)
              at org.apache.lucene.index.IndexWriter.shutdown(IndexWriter.java:1083)
              at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1125)
              at org.hibernate.search.backend.impl.lucene.IndexWriterHolder.closeIndexWriter(IndexWriterHolder.java:169)
              at org.hibernate.search.backend.impl.lucene.AbstractWorkspaceImpl.closeIndexWriter(AbstractWorkspaceImpl.java:108)
              at org.hibernate.search.backend.impl.lucene.AbstractWorkspaceImpl.shutDownNow(AbstractWorkspaceImpl.java:103)
              at org.hibernate.search.backend.impl.lucene.LuceneBackendResources.shutdown(LuceneBackendResources.java:115)
              at org.hibernate.search.backend.impl.lucene.LuceneBackendQueueProcessor.close(LuceneBackendQueueProcessor.java:70)
              at org.infinispan.query.indexmanager.LocalIndexingBackend.flushAndClose(LocalIndexingBackend.java:48)
              at org.infinispan.query.indexmanager.ClusteredSwitchingBackend.closeBackend(ClusteredSwitchingBackend.java:227)
              at org.infinispan.query.indexmanager.ClusteredSwitchingBackend.shutdown(ClusteredSwitchingBackend.java:216)
              at org.infinispan.query.indexmanager.InfinispanBackendQueueProcessor.close(InfinispanBackendQueueProcessor.java:79)
              at org.hibernate.search.indexes.spi.DirectoryBasedIndexManager.destroy(DirectoryBasedIndexManager.java:78)
              at org.hibernate.search.indexes.impl.IndexManagerHolder.stop(IndexManagerHolder.java:197)
              at org.hibernate.search.engine.impl.ImmutableSearchFactory.close(ImmutableSearchFactory.java:230)
              at org.hibernate.search.engine.impl.MutableSearchFactory.close(MutableSearchFactory.java:137)
              at org.infinispan.query.impl.LifecycleManager.cacheStopping(LifecycleManager.java:338)
              at org.infinispan.factories.ComponentRegistry.stop(ComponentRegistry.java:257)
              at org.infinispan.cache.impl.CacheImpl.stop(CacheImpl.java:869)
              at org.infinispan.cache.impl.CacheImpl.stop(CacheImpl.java:864)
              at org.infinispan.server.infinispan.SecurityActions$6.run(SecurityActions.java:142)
              at org.infinispan.server.infinispan.SecurityActions$6.run(SecurityActions.java:139)
              at org.infinispan.security.Security.doPrivileged(Security.java:76)
              at org.infinispan.server.infinispan.SecurityActions.doPrivileged(SecurityActions.java:63)
              at org.infinispan.server.infinispan.SecurityActions.stopCache(SecurityActions.java:146)
              at org.jboss.as.clustering.infinispan.subsystem.CacheService.stop(CacheService.java:103)
              at org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:2056)
              at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:2017)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      

              gfernand@redhat.com Gustavo Fernandes (Inactive)
              dberinde@redhat.com Dan Berindei (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: