Hi Guillaume,
Thanks a lot for looking into these MongoDB cache stores issues :). Apologies for the
delay getting back to you.
The test you've created does not really check that the data has been stored in
MongoDB. It just checks that the cache's values() returns something, which it should
since even in the default configuration, the contents of the cache in memory should have
that data.
The test you've created though should definitely update the cache store. I'd
recommend tracing it with the IDE or inspecting the logs to see why the cache store is not
being updated.
If you're writing a test that verifies that after passivation the cache store contains
data, then you'd need an Infinispan version that has [1] fixed.
Cheers,
[1]
https://issues.jboss.org/browse/ISPN-761
On Dec 26, 2013, at 10:32 PM, Guillaume SCHEIBEL <guillaume.scheibel(a)gmail.com>
wrote:
Hello everyone,
I'm fixing some issues on the MongoDB cachestore configuration (v5.3). I've
written a test [1] to check that the value I've added in the cache is correctly
persisted into my MongoDB collection.
The problem is that when comes at the "assert" time, the value put in the cache
has still not been stored in MongoDB.
So how can I do to have the value directly persisted into the cache store database ?
Thanks
Guillaume
[1]
https://gist.github.com/gscheibel/8138722
_______________________________________________
infinispan-dev mailing list
infinispan-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev
--
Galder Zamarreño
galder(a)redhat.com
twitter.com/galderz
Project Lead, Escalante
http://escalante.io
Engineer, Infinispan
http://infinispan.org