Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-2399

CacheManager.startCaches very slow when multiple caches are passed in

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Out of Date
    • Affects Version/s: 5.2.0.Beta1
    • Fix Version/s: 7.0.0.Final
    • Component/s: Core
    • Labels:
      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..

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mircea.markus Mircea Markus
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: