Details
-
Bug
-
Resolution: Obsolete
-
Major
-
None
-
9.1.0.Final
-
None
-
Compatibility/Configuration, User Experience
-
Low
Description
1. According to documentation in 9.1 and XSD schema should be two separate attributes in
type="tns:distributed-cache" "capacity" and "capacity-factor", however
org.infinispan.configuration.parsing.Attribute enum using "capacity" name for CAPACITY_FACTOR enum entry, e.g CAPACITY_FACTOR("capacity"), what is causing parsing error when "capacity-factor" is used in "distributed-cache" configuration
javax.xml.stream.XMLStreamException: ParseError at [row,col]:[14,96]
Message: Unexpected attribute 'capacity-factor' encountered
2. org.infinispan.configuration.parsing.Parser#parseDistributedCache:2106 uses CAPACITY_FACTOR (which was collected from "capacity" attribute) to map to builder clustering().hash().capacityFactor
this is misleading and one that not familiar with this bug, won't be able to set "capacity-factor" in cache configuration:
<distributed-cache capacity-factor="...">
...
</distributed-cache>