[infinispan-issues] [JBoss JIRA] (ISPN-2399) CacheManager.startCaches very slow when multiple caches are passed in
Tristan Tarrant (JIRA)
issues at jboss.org
Mon Jan 12 09:17:29 EST 2015
[ https://issues.jboss.org/browse/ISPN-2399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tristan Tarrant reassigned ISPN-2399:
-------------------------------------
Assignee: (was: Mircea Markus)
> 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
>
> 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
(v6.3.11#6341)
More information about the infinispan-issues
mailing list