[infinispan-issues] [JBoss JIRA] (ISPN-10315) Cache shutdown does not stop all caches

Gustavo Fernandes (Jira) issues at jboss.org
Mon Jun 17 03:58:00 EDT 2019


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

Gustavo Fernandes updated ISPN-10315:
-------------------------------------
    Description: 
Cache.shutdown() does not stop all caches cluster wide, but only the local cache. Reproducer:
 
{code:java}
Cache<Object, Object> cacheA_0 = cache(0, "cacheA");
Cache<Object, Object> cacheA_1 = cache(1, "cacheA");
Cache<Object, Object> cacheA_2 = cache(2, "cacheA");

cacheA_1.shutdown();

System.out.println(cacheA_0.getStatus());
System.out.println(cacheA_1.getStatus());
System.out.println(cacheA_2.getStatus());
{code}

yields:

RUNNING
TERMINATED
RUNNING


  was:
Cache.shutdown() does not stop all cache cluster wide, but only the local cache. Reproducer:
 
{code:java}
Cache<Object, Object> cacheA_0 = cache(0, "cacheA");
Cache<Object, Object> cacheA_1 = cache(1, "cacheA");
Cache<Object, Object> cacheA_2 = cache(2, "cacheA");

cacheA_1.shutdown();

System.out.println(cacheA_0.getStatus());
System.out.println(cacheA_1.getStatus());
System.out.println(cacheA_2.getStatus());
{code}

yields:

RUNNING
TERMINATED
RUNNING




> Cache shutdown does not stop all caches
> ---------------------------------------
>
>                 Key: ISPN-10315
>                 URL: https://issues.jboss.org/browse/ISPN-10315
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Core
>            Reporter: Gustavo Fernandes
>            Priority: Major
>
> Cache.shutdown() does not stop all caches cluster wide, but only the local cache. Reproducer:
>  
> {code:java}
> Cache<Object, Object> cacheA_0 = cache(0, "cacheA");
> Cache<Object, Object> cacheA_1 = cache(1, "cacheA");
> Cache<Object, Object> cacheA_2 = cache(2, "cacheA");
> cacheA_1.shutdown();
> System.out.println(cacheA_0.getStatus());
> System.out.println(cacheA_1.getStatus());
> System.out.println(cacheA_2.getStatus());
> {code}
> yields:
> RUNNING
> TERMINATED
> RUNNING



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the infinispan-issues mailing list