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

Conf. Conversion Tool: backupFailurePolicy attribute is not converted while parsing backup tag

XMLWordPrintable

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

      While parsing the backup, the backupFailurePolicy attribute is not parsed to the new version. When getting it with config. API, it always returns WARN (the default value).
      The following xml:

      ....
      <namedCache name="withSitesEnabled">
              <sites>
                  <backups>
                      <backup site="backupTest" strategy="SYNC" backupFailurePolicy="IGNORE" timeout="17000" useTwoPhaseCommit="true">
                          <takeOffline afterFailures="15" minTimeToWait="12000"/>
                      </backup>
                      <backup site="backupTest1" strategy="ASYNC" backupFailurePolicy="CUSTOM" timeout="18000"
                              useTwoPhaseCommit="false" enabled="false" failurePolicyClass="org.infinispan.xsite.CountingCustomFailurePolicy">
                          <takeOffline afterFailures="17" minTimeToWait="13000"/>
                      </backup>
                  </backups>
                  <backupFor remoteCache="test" remoteSite="test1"/>
              </sites>
          </namedCache>
      ....
      

      is parsed to:

      ....
      <local-cache name="withSitesEnabled" statistics="false">
                  <backups>
                      <backup site="backupTest" strategy="SYNC" timeout="17000" two-phase-commit="true">
                          <take-offline after-failures="15" min-wait="12000"/>
                      </backup>
                      <backup enabled="false" site="backupTest1" strategy="ASYNC" timeout="18000" two-phase-commit="false" failure-policy-class="org.infinispan.xsite.CountingCustomFailurePolicy">
                          <take-offline after-failures="17" min-wait="13000"/>
                      </backup>
                  </backups>
                  <backup-for remote-cache="test" remote-site="test1"/>
              </local-cache>
      ....
      

      UPDATE:
      In case when the global site tag exists in 6.0 xml config, seems that it is not parsed. if I'm getting it's value from API, it returns the siteId of transport. Should be serialized to unreliable-return-values attribute of cache tag.

      UPDATE: unreliable-return-values relates to unsafe element of 6.0 config xml.

            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: