Hi all,
Re:
https://issues.jboss.org/browse/ISPN-1935
I don't see an easy solution for this. See test in
https://github.com/galderz/infinispan/blob/t_1935_m/tree/src/test/java/or...
The problem is the cache.put() from where the cache entry modified event is thrown comes
from when the AtomicHashMap is created, which at that point is empty.
Once the AHM is created, we then modify the map which does not generate any events, it
just generates the deltas.
Finally, when the operation is completed, a prepare replicates the actual deltas in the
cluster (not in the test, but in a clustered test).
But a user can't listen for @TransactionCompleted and expect to see the list of
modifications.
Any other ideas?
Cheers,
--
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache