-
Bug
-
Resolution: Done
-
Major
-
15.0.0.Final
-
None
The index sharding feature introduced in ISPN-14723 included a change in the Infinispan XSD that made it invalid: see https://github.com/infinispan/infinispan/commit/1b92b4e1c4bffc50a0dbcdb55a0150acb2fb1511#diff-63c87855815b0beba3fa003d98149bba2b32e92ffa43b5872cf4f11cc51f31ff in particular.
Discovered when trying to validate an Infinispan config file:
$ xmllint --nowarning --noout --schema infinispan-config-15.0.xsd cache-ispn-replicated-caches.xml
infinispan-config-15.0.xsd:1148: element element: Schemas parser error : Element '{{{}
Unknown macro: {http}
{}}}element', attribute 'maxOccurs': The value must be greater than or equal to 1.
WXS schema infinispan-config-15.0.xsd failed to compile
I guess maxOccurs="0" is a typo, but should rather be maxOccurs="1", right?
Another issue is:
infinispan-config-15.0.xsd:643: element complexType: Schemas parser error : complex type 'regex-principal-transformer', attribute 'base': The QName value 'principal-transformer' does not resolve to a simple type definition.
This can be fixed by changing base="principal-transformer" to "tns:principal-transformer".
And the last issue that I could find was:
infinispan-config-15.0.xsd:868: element attribute: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}attribute': [facet 'enumeration'] The value 'OTLP' is not an element of the set {'otlp', 'jaeger', 'zipkin', 'prometheus'}.
infinispan-config-15.0.xsd:868: element attribute: Schemas parser error : attribute decl. 'exporter-protocol': The value of the value constraint is not valid.
This can be fixed by changing default="OTLP" to default="otlp".