You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Used frameworks: e.g. MicroFramework X, Spring, ...
Describe the bug
I want to reload the graph from storage in my tests to check if we persist stuff correctly.
I wanted to use the Reloader for that. We are using a ConcurrentHashMap in our Root Object:
final Map<Class<? extends Test>, Map<UUID, Test>> testMap = new ConcurrentHashMap<>();
static class Test{}
static class Item extends Test{
public final UUID uuid = UUID.randomUUID();
public String string;
public Item(String string) {
this.string = string;
}
}
But when reloading the root with reloader.reloadDeep it doesn't load the items from storage.
Number of items in list: 1
Number of items in list after clear: 0 (surprise :) )
Number of items in list after reload: 0
[]
Hi,
thanks for the reproducer, it simplifies a lot.
When you use the eager storer instance to store the map after adding an item you need to call the storers commit method to persist that change. Just call commit() after the store:
Environment Details
Describe the bug
I want to reload the graph from storage in my tests to check if we persist stuff correctly.
I wanted to use the Reloader for that. We are using a ConcurrentHashMap in our Root Object:
But when reloading the root with reloader.reloadDeep it doesn't load the items from storage.
I created a reproducer here:
tschuehly@828119b#commitcomment-143840312
The text was updated successfully, but these errors were encountered: