Re: Multiple DocumentNodeStores sharing a single DocumentStore

2015-08-31 Thread Marcel Reutegger
Hi, I agree with Julian. the way a DocumentNodeStore deals with the DocumentStore, it currently owns it and therefore closes the store when it is disposed. this means the test should be changed. what we could do is change the contract. the DocumentNodeStore is only responsible for the underlying

Re: Multiple DocumentNodeStores sharing a single DocumentStore

2015-08-30 Thread Julian Reschke
On 2015-08-28 14:01, Robert Munteanu wrote: Hi, I'm looking at LastRevRecoveryAgentTest [1] which uses a shared document store for two DocumentNodeStore instances. Disposing both node store instances makes the tests fail, as the document store will be closed by the first call to dispose() and

Multiple DocumentNodeStores sharing a single DocumentStore

2015-08-28 Thread Robert Munteanu
Hi, I'm looking at LastRevRecoveryAgentTest [1] which uses a shared document store for two DocumentNodeStore instances. Disposing both node store instances makes the tests fail, as the document store will be closed by the first call to dispose() and the second call will fail. The reason is the