[infinispan-dev] Tree cache listeners

Galder Zamarreño galder at redhat.com
Tue Mar 27 07:11:46 EDT 2012


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/org/infinispan/api/tree/TreeListenerTest.java

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




More information about the infinispan-dev mailing list