[
https://issues.jboss.org/browse/ISPN-2399?page=com.atlassian.jira.plugin....
]
Mircea Markus updated ISPN-2399:
--------------------------------
Description:
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..
was:
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..
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
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);
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 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