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

CacheManager not stopping when search factory not initialized

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.Alpha1, 7.0.3.Final
    • None
    • None
    • None

      The situation can be reproduced in a simple test:

      @Test
      public void testStartAndStopWithoutIndexing() {
            EmbeddedCacheManager cacheManager = ... // With indexing enabled, using infinispan directory
            cacheManager.getCache();
            cacheManager.stop();
      
            assertEquals(ComponentStatus.TERMINATED, cacheManager.getStatus());
         }
      

      The issue is that query related caches are lazily created, and the stop( ) method fails with NPE

              gfernand@redhat.com Gustavo Fernandes (Inactive)
              gfernand@redhat.com Gustavo Fernandes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: