0 Replies Latest reply on Oct 12, 2016 2:10 AM by vdzhuvinov

    Cache remove occasionally fails to return value in invalidation mode with cache store

    vdzhuvinov

      We noticed some unexpected behaviour when using Infinispan in invalidation mode. It occurs sometimes. Is this a race condition, or is cache remove() supposed to behave like this when it's setup in invalidation mode?

       

      1. Create two cache managers.
      2. Establish a cluster between them.
      3. Create an invalidating (sync) cache on each node.
      4. Configure a shared cache store.
      5. Put entry on node 1.
      6. Try to remove the entry on node 2.

       

      About 40% of the time remove() fails to return the removed value, and we get null instead.

       

      A ticket was filed in the tracker to for this issue, and it contains a Java test.

       

      [ISPN-7104] Cache remove fails to return value in invalidation mode with cache store - JBoss Issue Tracker