]
RH Bugzilla Integration commented on ISPN-5011:
-----------------------------------------------
Dave Stahl <dstahl(a)redhat.com> changed the Status of [bug
CacheManager not stopping when search factory not initialized
-------------------------------------------------------------
Key: ISPN-5011
URL:
https://issues.jboss.org/browse/ISPN-5011
Project: Infinispan
Issue Type: Bug
Reporter: Gustavo Fernandes
Assignee: Gustavo Fernandes
Fix For: 7.1.0.Alpha1, 7.0.3.Final
The situation can be reproduced in a simple test:
{code}
@Test
public void testStartAndStopWithoutIndexing() {
EmbeddedCacheManager cacheManager = ... // With indexing enabled, using infinispan
directory
cacheManager.getCache();
cacheManager.stop();
assertEquals(ComponentStatus.TERMINATED, cacheManager.getStatus());
}
{code}
The issue is that query related caches are lazily created, and the stop( ) method fails
with NPE