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

CacheManager not stopping when search factory not initialized

    XMLWordPrintable

    Details

      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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                gustavonalle Gustavo Fernandes
                Reporter:
                gustavonalle Gustavo Fernandes
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: