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

Hotrod clients removeWithVersion doesn't work with replicated cache

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Critical
    • None
    • 6.0.0.Beta1
    • Remote Protocols

    Description

      I have a cluster of 2 latest infinispan servers (6.0.0-SNAPSHOT) with the following container configuration:

      <cache-container name="default" default-cache="default" listener-executor="infinispan-listener">
          <transport stack="udp" executor="infinispan-transport" lock-timeout="240000"/>
          <replicated-cache name="default" start="EAGER" mode="SYNC" batching="false" remote-timeout="60000">
              <transaction mode="NONE"/>
              <state-transfer enabled="true" timeout="60000"/>
          </replicated-cache>
      </cache-container>
      

      Running this code:

          remoteCache = remoteCacheManager.getCache();
          remoteCache.clear();
          assertFalse(remoteCache.removeWithVersion("aKey", 12321212l));
          remoteCache.put("aKey", "aValue");
          VersionedValue valueBinary = remoteCache.getVersioned("aKey");
          System.out.println("value = " + valueBinary.getValue());
          System.out.println("version = " + valueBinary.getVersion());
          System.out.println(remoteCache.removeWithVersion("aKey",valueBinary.getVersion()));
          valueBinary = remoteCache.getVersioned("aKey");
          System.out.println("value = " + valueBinary.getValue());
          System.out.println("version = " + valueBinary.getVersion());
      

      results most of the time in (and the other times the removeWithVersion returns false)

      value = aValue
      version = 281483566645249
      true
      value = aValue
      version = 281483566645249

      The command works with distributed/local cache.

      Attachments

        Activity

          People

            rh-ee-galder Galder ZamarreƱo
            jmarkos Jakub Markos (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: