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

CacheManager not stopping when search factory not initialized

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: