From: Wolfgang M. <wol...@ex...> - 2005-01-03 20:02:25
|
Hi, > I am using the 1222 development build and am getting > ConcurrentModificationExceptions while simultaneously > storing new documents into a collection and querying > the same collection. Here is a snippet from the > exception: > > org.exist.dom.DocumentSet.addAll(DocumentSet.java:1057) > org.exist.collections.Collection.getDocuments(Collection.java:341) > org.exist.collections.Collection.allDocs(Collection.java > 294) > > I am unfamiliar with the code, but I suspect that the > Collection.store method might not adequately protect > "documents" from modification while "documents" is > being iterated. yes, that seems possible though I couldn't reproduce the exception. I'm trying to find a solution, which is a bit difficult as we have to avoid deadlocks ... What I would like to know is: have you tried this with other versions than the 1222 development build? Did it work before? I made some modifications concerning locking and I'm not sure if I changed something that affects the collection locking. Wolfgang |