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

Conf. Conversion Tool: transport tag is not converted properly

XMLWordPrintable

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

      While parsing the 6.0 configuration xml using conversion tool, the {{transport }} tag is not parsed properly.

      The following code:

      <infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:infinispan:config:6.0 http://www.infinispan.org/schemas/infinispan-config-6.0.xsd" xmlns="urn:infinispan:config:6.0">
          <global>
              <transport clusterName="ClusterOne" distributedSyncTimeout="50000">
                  <properties>
                      <property name="configurationFile" value="jgroups-admin.xml" />
                  </properties>
              </transport>
              <globalJmxStatistics enabled="true"  allowDuplicateDomains="true" cacheManagerName="AdminCacheManager"/>
          </global>
      </infinispan>
      

      is converted to:

      <?xml version="1.0" ?>
      <infinispan>
          <jgroups transport="org.infinispan.remoting.transport.jgroups.JGroupsTransport"/>
          <threads/>
          <cache-container name="AdminCacheManager" statistics="true">
              <transport cluster="ClusterOne"/>
              <jmx duplicate-domains="true"/>
          </cache-container></infinispan>
      

      As far as I understand the real parsed xml should look like this:

      <infinispan>
          <jgroups>
              <stack-file name="default-jgroups-admin" path="jgroups-admin.xml"/>
          </jgroups>
      
          <cache-container name="AdminCacheManager" statistics="true">
              <transport cluster="ClusterOne" lock-timeout="50000" stack="default-jgroups-admin"/>
              <jmx duplicate-domains="true"/>
          </cache-container>
      </infinispan>
      

      the nodeName attribute of transport tag is also not converted to node-name.

      UPDATE:
      Also the converter doesn't parse any of the following configurations: asyncTransportExecutor, remoteCommandsExecutor and totalOrderExecutor. From infinispan-8.3 schema, I can see that now the transport tag has corresponding attributes for these elements: executor, remote-command-executor, total-order-executor .

            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: