Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-14090

Counters client 14 are incompatible with Server 13

    XMLWordPrintable

Details

    Description

      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

       

       

       

      Attachments

        Issue Links

          Activity

            People

              wburns@redhat.com Will Burns
              karestig@redhat.com Katia Aresti
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: