-
Bug
-
Resolution: Done
-
Blocker
-
14.0.0.Final
-
None
When I updated Quarkus to 14.0.0.CR1 the counters test stopped working.
The code
CounterConfiguration configuration = counterManager.getConfiguration(id); if (configuration == null) { configuration = CounterConfiguration.builder(CounterType.BOUNDED_STRONG).build(); counterManager.defineCounter(id, configuration); } StrongCounter strongCounter = counterManager.getStrongCounter(id);
Leads to a hotrod exception
Caused by: org.infinispan.counter.exception.CounterException: ISPN029514: Invalid counter type. Expected=Strong but got Weak at org.infinispan.client.hotrod.counter.impl.RemoteCounterManager.assertStrongCounter(RemoteCounterManager.java:128)
If I change the code to the use if isDefined I get the same error
if (!counterManager.isDefined(id)) {
CounterConfiguration configuration = CounterConfiguration.builder(CounterType.BOUNDED_STRONG).build();
counterManager.defineCounter(id, configuration);
}
StrongCounter strongCounter = counterManager.getStrongCounter(id);
UPDATE
====
A user opened a Jira upstream. The issue is that counters hotrod API are broken when running infinispan client hotrod 14 against Infinispan 13 Server
https://github.com/quarkusio/quarkus/issues/29733
- relates to
-
ISPN-14435 Backwards compatibility broken with InvalidMagicIdException
- Resolved