Uploaded image for project: 'Hot Rod Native client'
  1. Hot Rod Native client
  2. HRCPP-362

Methods replaceWithVersion and removeWithVersion do not work with Near Cache enabled

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 8.1.0.CR1
    • .NET
    • None

      cache.ReplaceWithVersion() fails to replace the entry and cache.RemoteWithVersion() fails to remove the entry when near cache is enabled.

      When I disable near cache the same methods work

      Example test code:

      IVersionedValue<String> versioned = cache.GetVersioned("k");
      Assert.IsTrue(cache.ReplaceWithVersion("k", value, (ulong) versioned.GetVersion()), "Not replaced!");  //<<<---fails here
      Assert.AreEqual(value, cache.Get("k"));
      

      Full test here: https://github.com/mgencur/dotnet-client/blob/extend_near_cache_tests/src/test/cs/Infinispan/HotRod/NearCacheStaleReadsTest.cs#L64

              vrigamon@redhat.com Vittorio Rigamonti
              mgencur Martin Gencur (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: