Details
-
Enhancement
-
Resolution: Obsolete
-
Minor
-
5.2.0.Beta1
-
None
Description
the TransactionsSpanningReplicatedCachesTest uses the following code to start multiple caches:
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");
On my machine(MBP) this executes in 12 mins.The functionally equivalent below executes in 15 secs:
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); }
We need to analyse why this takes so long and also updated the test to use the CacheManagers.startCaches..