0 Replies Latest reply on Dec 23, 2013 10:56 AM by Rajesh Jangam

    Getting stale data from SingleFileStore (Infinispan 6.0) in multithreaded environment

    Rajesh Jangam Newbie

      Hello All,


      We are developing an application using Infinispan 6.0.0 - SingleFileStore.

      We have several threads that update the same key with a different value all the time.


      Say for example:


      acquire lock()

           Integer value = cache.get(CONSTANT_KEY)

           // do something

           cache.put(CONSTANT_KEY, value+1)

      release lock()


      Intermittently, we see that the value obtained from the cache.get is not the latest that was "put" by the previous thread.

      Anyone seen this before? We are at Infinispan 5.3.0 and want to move to 6.0.0 for performance reasons.

      But issue is getting in our way.

      Thanks in Advance!