[infinispan-issues] [JBoss JIRA] (ISPN-2418) CLONE - Cache restart doesn't work properly

Dan Berindei (Jira) issues at jboss.org
Fri Mar 13 03:58:52 EDT 2020


     [ https://issues.redhat.com/browse/ISPN-2418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Berindei closed ISPN-2418.
------------------------------
    Fix Version/s: 8.2.0.Final
       Resolution: Done


Fixed with ISPN-6286

> CLONE - Cache restart doesn't work properly
> -------------------------------------------
>
>                 Key: ISPN-2418
>                 URL: https://issues.redhat.com/browse/ISPN-2418
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 5.1.7.Final, 5.2.0.Alpha3
>            Reporter: Dan Berindei
>            Priority: Major
>              Labels: jdg6
>             Fix For: 8.2.0.Final
>
>
> Copied from ISPN-2297:
> {quote}
> If a cache is stopped via {{Cache.stop()}} it will still be returned by {{DefaultCacheManager.getCache()}}. Cache {{start()}} and {{stop()}} are not synchronized in any way, so a {{start()}} call may return before the cache was properly started - just because another thread is in the process of starting it.
> Also, the documentation of {{EmbeddedCacheManager.getCache()}} should say that it will start the cache only if it doesn't exist yet - if the cache is stopped it will return the cache as it was. Alternatively we could change the behaviour of {{getCache()}} to always start the cache.
> {quote}



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list