]
Galder Zamarreño updated ISPN-5075:
-----------------------------------
Fix Version/s: 9.4.0.Final
(was: 9.3.0.Final)
org.infinispan.IllegalLifecycleStateException in query tests
------------------------------------------------------------
Key: ISPN-5075
URL:
https://issues.jboss.org/browse/ISPN-5075
Project: Infinispan
Issue Type: Bug
Components: Test Suite - Query
Affects Versions: 7.1.0.Alpha1
Reporter: Gustavo Fernandes
Assignee: Gustavo Fernandes
Fix For: 9.4.0.Final
Many query tests log an error after running:
{code}
Exception in thread "Hibernate Search: async deletion of index segments-1"
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:89)
at
org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:71)
at
org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:77)
at
org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:44)
at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:333)
at org.infinispan.cache.impl.CacheImpl.get(CacheImpl.java:422)
at org.infinispan.cache.impl.DecoratedCache.get(DecoratedCache.java:427)
at
org.infinispan.lucene.impl.FileListOperations.getFileList(FileListOperations.java:160)
at
org.infinispan.lucene.impl.FileListOperations.deleteFileName(FileListOperations.java:129)
at
org.infinispan.lucene.impl.DirectoryImplementor.deleteFile(DirectoryImplementor.java:64)
at
org.infinispan.lucene.impl.DirectoryLuceneV4$DeleteTask.run(DirectoryLuceneV4.java:195)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
{code}
That error does not cause the tests to fail, and are due to the async deletes of segments
recently implemented. Need to check if the executors are being flushed correctly when the
cache manager stops