[infinispan-issues] [JBoss JIRA] (ISPN-2399) CacheManager.startCaches very slow when multiple caches are passed in

Dan Berindei (JIRA) issues at jboss.org
Thu Dec 29 09:58:00 EST 2016


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

Dan Berindei resolved ISPN-2399.
--------------------------------
    Fix Version/s: 7.0.0.Final
       Resolution: Out of Date


Fixed before 7.0.0.Final.

> CacheManager.startCaches very slow when multiple caches are passed in
> ---------------------------------------------------------------------
>
>                 Key: ISPN-2399
>                 URL: https://issues.jboss.org/browse/ISPN-2399
>             Project: Infinispan
>          Issue Type: Feature Request
>          Components: Core
>    Affects Versions: 5.2.0.Beta1
>            Reporter: Mircea Markus
>            Priority: Minor
>             Fix For: 7.0.0.Final
>
>
> the TransactionsSpanningReplicatedCachesTest  uses the following code to start multiple caches:
> {code:java}
> cm1.startCaches("c1", "c2", "cache1", "cache2", CacheContainer.DEFAULT_CACHE_NAME);
> cm2.startCaches("c1", "c2", "cache1", "cache2", CacheContainer.DEFAULT_CACHE_NAME);
> waitForClusterToForm("c1", "c2", "cache1", "cache2");
> {code}
> On my machine(MBP) this executes in 12 mins.The functionally equivalent below executes in 15 secs: 
> {code:java}
> private void startAllCaches() {
>   startCache("c1");
>   startCache("c2");
>   startCache("cache1");
>   startCache("cache2");
>   startCache(CacheContainer.DEFAULT_CACHE_NAME);
> }
> private void startCache(String c1) {
>   cm1.getCache(c1);
>   cm2.getCache(c1);
>   waitForClusterToForm(c1);
> }
> {code}
> We need to analyse why this takes so long and also updated the test to use the CacheManagers.startCaches..



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the infinispan-issues mailing list