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

Infinite loop when creating more than two Distributed Cache nodes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Critical
    • None
    • 5.3.0.Beta1
    • JCache

    Description

      I created a very simple application based on https://docs.jboss.org/author/display/ISPN/Using+Infinispan+as+a+JCache+provider#UsingInfinispanasaJCacheprovider-ClusteringJCacheinstances

      I changed the code to created distributed caches instead of replicated ones. It works until two nodes but if there are three nodes it starts an infinite loop.

      The modified XML contains:

      <namedCache name="namedCache">
      <clustering mode="dist" />
      </namedCache>

      The modified java code contains:

      CacheManager cacheManager1 = Caching.getCacheManager(new TestClassLoader(tccl), "infinispan-jcache-cluster.xml");

      CacheManager cacheManager2 = Caching.getCacheManager(new TestClassLoader(tccl), "infinispan-jcache-cluster.xml");

      CacheManager cacheManager3 = Caching.getCacheManager(new TestClassLoader(tccl), "infinispan-jcache-cluster.xml");

      Symptom:

      The code waits on the third command while there is an infinite loop on a background thread. I guess the benefit of distribution would come with more than two nodes but I cannot test it due to the problem above.

      Although I used infinispan via JCache I think this issue is not related to the JCache API but it comes from the infinispan core.

      BTW: Distributed caches seem to me about 30% slower than replicated caches concerning to put and delete functions with two nodes. I guess the benefit would come out between the two topologies with more nodes.

      Attachments

        Activity

          People

            rh-ee-galder Galder ZamarreƱo
            zs_b_jira Balazs Zsoldos (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: