-
Bug
-
Resolution: Done
-
Major
-
JDG 7.0.0 ER5
-
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.
- is blocked by
-
ISPN-6687 XML Serializer does not serialize backup failure-policy element
-
- Closed
-