0 Replies Latest reply on May 13, 2013 11:37 PM by Yuming Zhu

    Cache.entrySet()/values() problem in Local Cache

    Yuming Zhu Newbie

      Hi, All

           I've to face this case in my project that when interating all the items of cache with Cache.entrySet() or value().

           such like this:


           First I used cache.put(key, value) or anotherCache.get(key).setSomeThing(sth) where sth is also in "cache"


           After this, I used cache.entrySet() to get all item in order to traverse them, but there were some entries lost which maybe related with the operations above. And, it happened randomly like conconrrent problem. but all of this came from one thread.


           and infinispan version is 5.1.8 and the container is Jboss As 7.1.3(Jboss EAP 6.0.1)


           this is my configuration in standalone.xml



      <cache-container name="twoface" default-cache="tickets">
                      <local-cache name="default-tickets" start="EAGER">
                          <transaction mode="NON_XA"/>
                      <local-cache name="resolved-tickets" start="EAGER">
                          <transaction mode="NON_XA"/>
                      <local-cache name="unresolved-tickets" start="EAGER">
                          <transaction mode="NON_XA"/>


      Could you give me some suggestions all point the reason ?


      Thanks and Cheers