-
Bug
-
Resolution: Done
-
Major
-
12.1.2.Final
-
None
-
None
Metric configuration for cache containers does not allow anymore to set the namesAsTags option. Infinispan fails during startup (see log below). This worked previously in 12.0.1 and is still listed in the schema of 12.1.2 (https://github.com/infinispan/infinispan/blob/12.1.2.Final/core/src/main/resources/schema/infinispan-config-12.1.xsd#L699). Infinispan is able to start when I remove the attribute, but then the metrics will be different and our existing tools and dashboards won't work anymore.
Config excerpt:
<cache-container name="default" statistics="true"> <metrics gauges="true" histograms="false" namesAsTags="true" /> </cache-container>
Log:
May 19 11:41:23 ispn-1 bash[318141]: 2021-05-19 11:41:23,134 INFO (main) [org.infinispan.SERVER] ISPN080000: Infinispan Server starting May 19 11:41:23 ispn-1 bash[318141]: 2021-05-19 11:41:23,134 INFO (main) [org.infinispan.SERVER] ISPN080017: Server configuration: infinispan.xml May 19 11:41:23 ispn-1 bash[318141]: 2021-05-19 11:41:23,135 INFO (main) [org.infinispan.SERVER] ISPN080032: Logging configuration: /opt/infinispan/infinispan-server-12.1.2.Final/server/conf/log4j2.xml May 19 11:41:24 ispn-1 bash[318141]: 2021-05-19 11:41:24,041 FATAL (main) [org.infinispan.SERVER] ISPN080028: Infinispan Server failed to start org.infinispan.commons.configuration.io.ConfigurationReaderException: Unexpected attribute 'names-as-tags' encounteredorg.infinispan.commons.configuration.io.xml.XmlConfigurationReader$1@36a7abe1 May 19 11:41:24 ispn-1 bash[318141]: at org.infinispan.configuration.parsing.ParseUtils.unexpectedAttribute(ParseUtils.java:61) May 19 11:41:24 ispn-1 bash[318141]: at org.infinispan.configuration.parsing.Parser.parseMetrics(Parser.java:925) May 19 11:41:24 ispn-1 bash[318141]: at org.infinispan.configuration.parsing.Parser.parseContainer(Parser.java:739) May 19 11:41:24 ispn-1 bash[318141]: at org.infinispan.configuration.parsing.Parser.readElement(Parser.java:84) May 19 11:41:24 ispn-1 bash[318141]: at org.infinispan.configuration.parsing.ParserRegistry.parseElement(ParserRegistry.java:204) May 19 11:41:24 ispn-1 bash[318141]: at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:184) May 19 11:41:24 ispn-1 bash[318141]: at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:170) May 19 11:41:24 ispn-1 bash[318141]: at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:164) May 19 11:41:24 ispn-1 bash[318141]: at org.infinispan.server.Server.parseConfiguration(Server.java:289) May 19 11:41:24 ispn-1 bash[318141]: at org.infinispan.server.Server.<init>(Server.java:213) May 19 11:41:24 ispn-1 bash[318141]: at org.infinispan.server.Bootstrap.runInternal(Bootstrap.java:158) May 19 11:41:24 ispn-1 bash[318141]: at org.infinispan.server.tool.Main.run(Main.java:98) May 19 11:41:24 ispn-1 bash[318141]: at org.infinispan.server.Bootstrap.main(Bootstrap.java:47) May 19 11:41:24 ispn-1 bash[318141]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) May 19 11:41:24 ispn-1 bash[318141]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) May 19 11:41:24 ispn-1 bash[318141]: at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) May 19 11:41:24 ispn-1 bash[318141]: at java.base/java.lang.reflect.Method.invoke(Method.java:566) May 19 11:41:24 ispn-1 bash[318141]: at org.infinispan.server.loader.Loader.run(Loader.java:106) May 19 11:41:24 ispn-1 bash[318141]: at org.infinispan.server.loader.Loader.main(Loader.java:51) May 19 11:41:24 ispn-1 bash[318141]: May 19 11:41:24 ispn-1 bash[318141]: 2021-05-19 11:41:24,058 INFO (Thread-1) [org.infinispan.SERVER] ISPN080002: Infinispan Server stopping May 19 11:41:24 ispn-1 bash[318141]: 2021-05-19 11:41:24,062 INFO (Thread-1) [org.infinispan.SERVER] ISPN080003: Infinispan Server stopped