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> <local-cache name="resolved-tickets" start="EAGER"> <transaction mode="NON_XA"/> </local-cache> <local-cache name="unresolved-tickets" start="EAGER"> <transaction mode="NON_XA"/> </local-cache> ... </cache-container>
Could you give me some suggestions all point the reason ?
Thanks and Cheers
Yuming