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

CacheManager.startCaches very slow when multiple caches are passed in

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Obsolete
    • Minor
    • 7.0.0.Final
    • 5.2.0.Beta1
    • Core
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: