Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-6338

Infinispan subsystem XSD disagrees with TransactionResourceDefinition on default locking mode

    XMLWordPrintable

    Details

      Description

      The XSD for the Infinispan subsystem (jboss-as-infinispan_4_0.xsd) says that the default locking level is OPTIMISTIC:

      <xs:complexType name="transaction">
          ...
          <xs:attribute name="locking" type="tns:locking-mode" default="OPTIMISTIC">
              <xs:annotation>
                  <xs:documentation>The locking mode for this cache, one of OPTIMISTIC or PESSIMISTIC.</xs:documentation>
              </xs:annotation>
          </xs:attribute>
      </xs:complexType>
      

      However, the TransactionResourceDefinition class, which is the ultimate source of truth, disagrees:

      enum Attribute implements org.jboss.as.clustering.controller.Attribute {
          LOCKING("locking", ModelType.STRING, new ModelNode(LockingMode.PESSIMISTIC.name()), new EnumValidatorBuilder<>(LockingMode.class)),
          ...
      }
      

      I'm not sure myself which one should be the default, but this difference is surely a bug.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  rhusar Radoslav Husar
                  Reporter:
                  mvinkler Michal Vinkler
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: