I am trying to add support for persistent storage of a feature of an application. So far, I’ve noticed that caches are persisted and retrieved properly, as well as collections (which, from my understanding, is expected as IgniteSet
, IgniteQueue
are adapters for caches).
However, the IgniteAtomicReferences
I use are not found upon restart of the application. I also cannot find any mention of this use-case in the documentation.
Is there no support for persistent atomic types?
Here’s a code snippet similar to the one that creates the IgniteAtomicReference
var ref = Ignition.getOrStart(igniteConfiguration).atomicReference("solve", solve /* guaranteed not null */, true);
// ...
// Then, elsewhere, when I try to retrieve the persisted value after restart:
var hasSolve = ignite.atomicReference("solve", null, false).get() != null; // false
I have enabled persistence on the default data region, as I understand that’s where atomic types are stored.