[
https://issues.redhat.com/browse/ISPN-11547?page=com.atlassian.jira.plugi...
]
Dan Berindei commented on ISPN-11547:
-------------------------------------
[~gustavonalle] I have a similar problem with {{LocalCacheAsyncCacheStoreTest}}. On my
machine, if I run the test from an IDE by itself and with trace logging enabled, the 2nd
{{createBeforeMethod}} always fails with
{noformat}
08:48:32,258 ERROR (testng-Test:[]) [TestSuiteProgress] Test configuration failed:
org.infinispan.query.blackbox.LocalCacheAsyncCacheStoreTest.createBeforeMethod
org.infinispan.manager.EmbeddedCacheManagerStartupException:
org.infinispan.commons.CacheConfigurationException: Error starting component
org.infinispan.globalstate.GlobalConfigurationManager
at org.infinispan.manager.DefaultCacheManager.internalStart(DefaultCacheManager.java:746)
~[classes/:?]
at org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:712)
~[classes/:?]
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:390)
~[classes/:?]
at
org.infinispan.test.fwk.TestCacheManagerFactory.newDefaultCacheManager(TestCacheManagerFactory.java:92)
~[test-classes/:?]
at
org.infinispan.test.fwk.TestCacheManagerFactory.createClusteredCacheManager(TestCacheManagerFactory.java:239)
~[test-classes/:?]
at
org.infinispan.test.fwk.TestCacheManagerFactory.fromXml(TestCacheManagerFactory.java:114)
~[test-classes/:?]
at
org.infinispan.test.fwk.TestCacheManagerFactory.fromXml(TestCacheManagerFactory.java:106)
~[test-classes/:?]
at
org.infinispan.test.fwk.TestCacheManagerFactory.fromXml(TestCacheManagerFactory.java:102)
~[test-classes/:?]
at
org.infinispan.test.fwk.TestCacheManagerFactory.fromXml(TestCacheManagerFactory.java:98)
~[test-classes/:?]
at
org.infinispan.query.blackbox.LocalCacheAsyncCacheStoreTest.createCacheManager(LocalCacheAsyncCacheStoreTest.java:24)
~[test-classes/:?]
Caused by: org.infinispan.commons.CacheConfigurationException: Error starting component
org.infinispan.globalstate.GlobalConfigurationManager
Caused by: org.hibernate.search.exception.SearchException: HSEARCH000103: Unable to
initialize IndexManager named 'person'
Caused by: org.hibernate.search.exception.SearchException: Unable to open Lucene
IndexReader for IndexManager person
Caused by: java.io.FileNotFoundException: Error loading metadata for index file:
M|segments_8|person|-1
at
org.infinispan.lucene.impl.DirectoryImplementor.openInput(DirectoryImplementor.java:143)
~[classes/:?]
at org.infinispan.lucene.impl.DirectoryLucene.openInput(DirectoryLucene.java:104)
~[classes/:?]
at org.apache.lucene.store.Directory.openChecksumInput(Directory.java:109)
~[lucene-core-5.5.5.jar:5.5.5 b3441673c21c83762035dc21d3827ad16aa17b68 - sarowe -
2017-10-20 08:57:09]
at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:294)
~[lucene-core-5.5.5.jar:5.5.5 b3441673c21c83762035dc21d3827ad16aa17b68 - sarowe -
2017-10-20 08:57:09]
at
org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:53)
~[lucene-core-5.5.5.jar:5.5.5 b3441673c21c83762035dc21d3827ad16aa17b68 - sarowe -
2017-10-20 08:57:09]
at
org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:50)
~[lucene-core-5.5.5.jar:5.5.5 b3441673c21c83762035dc21d3827ad16aa17b68 - sarowe -
2017-10-20 08:57:09]
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:731)
~[lucene-core-5.5.5.jar:5.5.5 b3441673c21c83762035dc21d3827ad16aa17b68 - sarowe -
2017-10-20 08:57:09]
at org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:50)
~[lucene-core-5.5.5.jar:5.5.5 b3441673c21c83762035dc21d3827ad16aa17b68 - sarowe -
2017-10-20 08:57:09]
at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:63)
~[lucene-core-5.5.5.jar:5.5.5 b3441673c21c83762035dc21d3827ad16aa17b68 - sarowe -
2017-10-20 08:57:09]
at
org.hibernate.search.indexes.impl.SharingBufferReaderProvider.readerFactory(SharingBufferReaderProvider.java:132)
~[hibernate-search-engine-5.10.7.Final.jar:5.10.7.Final]
at
org.hibernate.search.indexes.impl.SharingBufferReaderProvider$PerDirectoryLatestReader.<init>(SharingBufferReaderProvider.java:207)
~[hibernate-search-engine-5.10.7.Final.jar:5.10.7.Final]
at
org.hibernate.search.indexes.impl.SharingBufferReaderProvider.createReader(SharingBufferReaderProvider.java:109)
~[hibernate-search-engine-5.10.7.Final.jar:5.10.7.Final]
at
org.hibernate.search.indexes.impl.SharingBufferReaderProvider.initialize(SharingBufferReaderProvider.java:92)
~[hibernate-search-engine-5.10.7.Final.jar:5.10.7.Final]
at
org.hibernate.search.indexes.impl.PropertiesParseHelper.createDirectoryBasedReaderProvider(PropertiesParseHelper.java:176)
~[hibernate-search-engine-5.10.7.Final.jar:5.10.7.Final]
at
org.hibernate.search.indexes.spi.DirectoryBasedIndexManager.createIndexReader(DirectoryBasedIndexManager.java:223)
~[hibernate-search-engine-5.10.7.Final.jar:5.10.7.Final]
at
org.hibernate.search.indexes.spi.DirectoryBasedIndexManager.initialize(DirectoryBasedIndexManager.java:94)
~[hibernate-search-engine-5.10.7.Final.jar:5.10.7.Final]
at
org.hibernate.search.indexes.impl.IndexManagerGroupHolder.doCreateIndexManager(IndexManagerGroupHolder.java:195)
~[hibernate-search-engine-5.10.7.Final.jar:5.10.7.Final]
at
org.hibernate.search.indexes.impl.IndexManagerGroupHolder.getOrCreateIndexManager(IndexManagerGroupHolder.java:155)
~[hibernate-search-engine-5.10.7.Final.jar:5.10.7.Final]
at
org.hibernate.search.indexes.impl.NotShardedEntityIndexBinder.bind(NotShardedEntityIndexBinder.java:34)
~[hibernate-search-engine-5.10.7.Final.jar:5.10.7.Final]
at
org.hibernate.search.indexes.impl.IndexManagerGroupHolder.bind(IndexManagerGroupHolder.java:100)
~[hibernate-search-engine-5.10.7.Final.jar:5.10.7.Final]
at
org.hibernate.search.indexes.impl.IndexManagerHolder.buildEntityIndexBinding(IndexManagerHolder.java:100)
~[hibernate-search-engine-5.10.7.Final.jar:5.10.7.Final]
at
org.hibernate.search.spi.SearchIntegratorBuilder.initDocumentBuilders(SearchIntegratorBuilder.java:428)
~[hibernate-search-engine-5.10.7.Final.jar:5.10.7.Final]
at
org.hibernate.search.spi.SearchIntegratorBuilder.createNewFactoryState(SearchIntegratorBuilder.java:244)
~[hibernate-search-engine-5.10.7.Final.jar:5.10.7.Final]
at
org.hibernate.search.spi.SearchIntegratorBuilder.buildNewSearchFactory(SearchIntegratorBuilder.java:200)
~[hibernate-search-engine-5.10.7.Final.jar:5.10.7.Final]
at
org.hibernate.search.spi.SearchIntegratorBuilder.buildSearchIntegrator(SearchIntegratorBuilder.java:128)
~[hibernate-search-engine-5.10.7.Final.jar:5.10.7.Final]
at
org.infinispan.query.impl.LifecycleManager.createSearchIntegrator(LifecycleManager.java:311)
~[classes/:?]
at org.infinispan.query.impl.LifecycleManager.cacheStarting(LifecycleManager.java:113)
~[classes/:?]
at
org.infinispan.factories.ComponentRegistry.notifyCacheStarting(ComponentRegistry.java:224)
~[classes/:?]
at org.infinispan.factories.ComponentRegistry.preStart(ComponentRegistry.java:214)
~[classes/:?]
at
org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:235)
~[classes/:?]
at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:204)
~[classes/:?]
at org.infinispan.cache.impl.CacheImpl.start(CacheImpl.java:1038) ~[classes/:?]
at
org.infinispan.cache.impl.AbstractDelegatingCache.start(AbstractDelegatingCache.java:513)
~[classes/:?]
at
org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:692)
~[classes/:?]
at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:631)
~[classes/:?]
at
org.infinispan.manager.DefaultCacheManager.internalGetCache(DefaultCacheManager.java:516)
~[classes/:?]
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:497)
~[classes/:?]
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:490)
~[classes/:?]
at org.infinispan.security.actions.GetCacheAction.run(GetCacheAction.java:26)
~[classes/:?]
at org.infinispan.security.actions.GetCacheAction.run(GetCacheAction.java:14)
~[classes/:?]
at org.infinispan.security.Security.doPrivileged(Security.java:46) ~[classes/:?]
at org.infinispan.globalstate.impl.SecurityActions.doPrivileged(SecurityActions.java:29)
~[classes/:?]
at org.infinispan.globalstate.impl.SecurityActions.getCache(SecurityActions.java:38)
~[classes/:?]
at
org.infinispan.globalstate.impl.GlobalConfigurationManagerImpl.start(GlobalConfigurationManagerImpl.java:92)
~[classes/:?]
at org.infinispan.globalstate.impl.CorePackageImpl$2.start(CorePackageImpl.java:59)
~[classes/:?]
at org.infinispan.globalstate.impl.CorePackageImpl$2.start(CorePackageImpl.java:48)
~[classes/:?]
at
org.infinispan.factories.impl.BasicComponentRegistryImpl.invokeStart(BasicComponentRegistryImpl.java:587)
~[classes/:?]
at
org.infinispan.factories.impl.BasicComponentRegistryImpl.doStartWrapper(BasicComponentRegistryImpl.java:578)
~[classes/:?]
at
org.infinispan.factories.impl.BasicComponentRegistryImpl.startWrapper(BasicComponentRegistryImpl.java:547)
~[classes/:?]
at
org.infinispan.factories.impl.BasicComponentRegistryImpl.access$700(BasicComponentRegistryImpl.java:30)
~[classes/:?]
at
org.infinispan.factories.impl.BasicComponentRegistryImpl$ComponentWrapper.running(BasicComponentRegistryImpl.java:770)
~[classes/:?]
at
org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:341)
~[classes/:?]
at
org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:237)
~[classes/:?]
at org.infinispan.manager.DefaultCacheManager.internalStart(DefaultCacheManager.java:741)
~[classes/:?]
... 39 more
{noformat}
The caches do not have transactions. The stores are async, but it doesn't seem to
matter, because the last write to that key is
{noformat}
08:48:31,099 TRACE (Hibernate Search: async deletion of index segments-1:[])
[InvocationContextInterceptor] Invoked with command PutKeyValueCommand{key=*|person|-1,
value=FileListCacheValue{fileNames=[segments_8]}, flags=[SKIP_INDEXING,
IGNORE_RETURN_VALUES], commandInvocationId=CommandInvocation:Test-NodeA:740,
putIfAbsent=false, valueMatcher=MATCH_ALWAYS,
metadata=EmbeddedExpirableMetadata{version=null, lifespan=-1, maxIdle=-1},
successful=true, topologyId=-1} and InvocationContext
[SingleKeyNonTxInvocationContext{isLocked=false, key=null, cacheEntry=null, origin=null,
lockOwner=CommandInvocation:Test-NodeA:740}]
{noformat}
Query test suite hangs intermitently
------------------------------------
Key: ISPN-11547
URL:
https://issues.redhat.com/browse/ISPN-11547
Project: Infinispan
Issue Type: Bug
Components: Embedded Querying
Affects Versions: 11.0.0.Dev03
Reporter: Gustavo Fernandes
Assignee: Gustavo Fernandes
Priority: Major
Attachments: test.log.gz
Sometimes clusters are not disposed correctly and errors such as below are thrown:
{noformat}
OK: 3410, KO: 7, SKIP: 2] Test configuration failed:
org.infinispan.query.blackbox.ClusteredCacheWithAsyncDirTest.createBeforeMethod
org.infinispan.util.concurrent.TimeoutException: Timed out before caches had complete
views. Expected 8 members in
each view. Views are as follows: [[ClusteredCacheWithAsyncDirTest-NodeA|2] (3)
[ClusteredCacheWithAsyncDirTest-
NodeA, ClusteredCacheWithAsyncDirTest-NodeB, ClusteredCacheWithAsyncDirTest-NodeC],
[ClusteredCacheWithAsyncDirTest-NodeA|1] (2) [ClusteredCacheWithAsyncDirTest-NodeA,
ClusteredCacheWithAsyncDirTest-NodeB], [ClusteredCacheWithAsyncDirTest-NodeC|5] (6)
[ClusteredCacheWithAsyncDirTest-NodeC, ClusteredCacheWithAsyncDirTest-NodeD,
ClusteredCacheWithAsyncDirTest-
NodeE, ClusteredCacheWithAsyncDirTest-NodeF, ClusteredCacheWithAsyncDirTest-NodeG,
ClusteredCacheWithAsyncDirTest-NodeH], [ClusteredCacheWithAsyncDirTest-NodeC|5] (6)
[ClusteredCacheWithAsyncDirTest-NodeC, ClusteredCacheWithAsyncDirTest-NodeD,
ClusteredCacheWithAsyncDirTest-
NodeE, ClusteredCacheWithAsyncDirTest-NodeF, ClusteredCacheWithAsyncDirTest-NodeG,
ClusteredCacheWithAsyncDirTest-NodeH], [ClusteredCacheWithAsyncDirTest-NodeC|5] (6)
[ClusteredCacheWithAsyncDirTest-NodeC, ClusteredCacheWithAsyncDirTest-NodeD,
ClusteredCacheWithAsyncDirTest-
NodeE, ClusteredCacheWithAsyncDirTest-NodeF, ClusteredCacheWithAsyncDirTest-NodeG,
ClusteredCacheWithAsyncDirTest-NodeH], [ClusteredCacheWithAsyncDirTest-NodeC|5] (6)
[ClusteredCacheWithAsyncDirTest-NodeC, ClusteredCacheWithAsyncDirTest-NodeD,
ClusteredCacheWithAsyncDirTest-
NodeE, ClusteredCacheWithAsyncDirTest-NodeF, ClusteredCacheWithAsyncDirTest-NodeG,
ClusteredCacheWithAsyncDirTest-NodeH], [ClusteredCacheWithAsyncDirTest-NodeC|5] (6)
[ClusteredCacheWithAsyncDirTest-NodeC, ClusteredCacheWithAsyncDirTest-NodeD,
ClusteredCacheWithAsyncDirTest-
NodeE, ClusteredCacheWithAsyncDirTest-NodeF, ClusteredCacheWithAsyncDirTest-NodeG,
ClusteredCacheWithAsyncDirTest-NodeH], [ClusteredCacheWithAsyncDirTest-NodeC|5] (6)
[ClusteredCacheWithAsyncDirTest-NodeC, ClusteredCacheWithAsyncDirTest-NodeD,
ClusteredCacheWithAsyncDirTest-
NodeE, ClusteredCacheWithAsyncDirTest-NodeF, ClusteredCacheWithAsyncDirTest-NodeG,
ClusteredCacheWithAsyncD
{noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)