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

Caches defined at runtime temporarily unavailable after server restart

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      It's possible for caches that are created and stored in org.infinispan.CONFIG to be temporarily unavailable after a server has been restarted and ISPN080001: Infinispan Server 13.0.0-SNAPSHOT started logged. This can result in clients receiving CacheNotFoundException.

      The root cause of the issue is the use of the GlobalConfigurationStateListener. When a server starts up the GlobalConfigurationManagerImpl reads the cache definitions stored in caches.xml and then calls getOrCreateCache in order to add the definition to the org.infinispan.CONFIG cache. Startup is blocked until the getOrCreateCache operation completes. However, the cache definition is not added to the local EmbeddedCacheManager until the listener receives the CacheEntryCreated event. This event is executed in parallel to the getOrCreateCache call, hence the sever can proceed to startup before the cache definition is added to the local EmbeddedCacheManager via the event.

              remerson@redhat.com Ryan Emerson
              remerson@redhat.com Ryan Emerson
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: