]
Radoslav Husar reassigned WFLY-6338:
------------------------------------
Assignee: Radoslav Husar (was: Paul Ferraro)
Infinispan subsystem XSD disagrees with TransactionResourceDefinition
on default locking level
----------------------------------------------------------------------------------------------
Key: WFLY-6338
URL:
https://issues.jboss.org/browse/WFLY-6338
Project: WildFly
Issue Type: Bug
Components: Clustering
Affects Versions: 10.0.0.Final
Reporter: Michal Vinkler
Assignee: Radoslav Husar
Priority: Blocker
The XSD for the Infinispan subsystem
([
jboss-as-infinispan_4_0.xsd|https://github.com/jbossas/jboss-eap7/blob/7....])
says that the default locking level is {{OPTIMISTIC}}:
{code:xml}
<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>
{code}
However, the
[
TransactionResourceDefinition|https://github.com/jbossas/jboss-eap7/blob/...]
class, which is the ultimate source of truth, disagrees:
{code:java}
enum Attribute implements org.jboss.as.clustering.controller.Attribute {
LOCKING("locking", ModelType.STRING, new
ModelNode(LockingMode.PESSIMISTIC.name()), new
EnumValidatorBuilder<>(LockingMode.class)),
...
}
{code}
I'm not sure myself which one should be the default, but this difference is surely a
bug.