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

CacheManager.startCaches very slow when multiple caches are passed in

    XMLWordPrintable

    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..

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: