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

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              vrigamon@redhat.com Vittorio Rigamonti
              mgencur Martin Gencur
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: