[infinispan-issues] [JBoss JIRA] (ISPN-2399) CacheManager.startCaches very slow when multiple caches are passed in
Mircea Markus (JIRA)
jira-events at lists.jboss.org
Sun Oct 14 16:03:01 EDT 2012
Mircea Markus created ISPN-2399:
-----------------------------------
Summary: 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
Affects Versions: 5.2.0.Beta1, 6.0.0.Final
Reporter: Mircea Markus
Assignee: Mircea Markus
the TransactionsSpanningReplicatedCachesTest uses the following code to start multiple caches:
{code:java}
cm1.startCaches("c1", "c2", "cache1", "cache2", CacheContainer.DEFAULT_CACHE_NAME);
63
cm2.startCaches("c1", "c2", "cache1", "cache2", CacheContainer.DEFAULT_CACHE_NAME);
64
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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list