Mantis - Baratine
Viewing Issue Advanced Details
5583 minor always 11-11-13 15:00 12-18-13 14:16
nam  
ferg  
normal  
closed 0.8.0  
fixed  
none    
none 0.8.1  
0005583: store loadAll() called a different number of times after a restart
(rep by J. Willis)

This version is better, but it still loads an inconsistent # of items from the store on start. I'm using the method of loading all of the items from the chatroom example:

@Inject
private StoreService store;
store.loadAll(new StoreOnLoad(), new StoreResult());

StoreOnLoad() is called an inconsistent # of times when restarting Resin. After adding a thousand items to the store, here's the number of times StoreOnload() was called after each of ten restarts:

1,000
947
944
0
943
0
977
924
0
1,000

Notes
(0006372)
ferg   
12-18-13 14:16   
baratine/7081

Docs also need to be updated to use onResult(Result<Boolean> cont).

In this case, using the future cannot work because the onLoad sends messages to the service's queue, which is blocked as long as the service is blocking on the future.