Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-351

Conf. Conversion Tool: distributed cache related configurations are not parsed properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JDG 7.0.0 ER6
    • JDG 7.0.0 ER5
    • Core
    • None

      While converting the 6.0 configuration xml using the conversion tool, the elements related to distributed cache are not parsed at all, e.g. the hash, l1, groups elements are not parsed at all.

      For example, the following xml:

      <infinispan>
          <namedCache name="chunkSize">
              <clustering mode="distribution">
                  <sync />
                  <hash numOwners="3" numSegments="1000" capacityFactor="0" >
                      <groups enabled="true">
                          <grouper class="org.infinispan.distribution.groups.KXGrouper" />
                      </groups>
                  </hash>
      
                  <l1 enabled="true" lifespan="600000" />
                  <stateTransfer fetchInMemoryState="true" timeout="120000" chunkSize="1000" />
              </clustering>
          </namedCache>
      </infinispan>
      

      is converted to:

      <infinispan>
          <threads/>
          <cache-container name="DefaultCacheManager">
              <jmx/>
              <distributed-cache mode="SYNC" name="chunkSize">
                  <transaction mode="NONE"/>
                  <state-transfer enabled="true" timeout="120000" chunk-size="1000"/>
              </distributed-cache>
          </cache-container>
      </infinispan>
      

      Also if the mode attribute is not provided for clustering tag, then while parsing it becomes a distributed-cache. I couldn't find anywhere that the dist-cache is the default one.

              ttarrant@redhat.com Tristan Tarrant
              amanukya@redhat.com Anna Manukyan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: