[Zope-dev] ConflictErrors and how to handle them
Morten W. Petersen
morten@esol.no
19 Feb 2001 15:07:18 +0100
Hi guys,
I've been struggling with a problem, namely ConflictErrors.
At times, a long-running process may add 100, 1000, 10000
objects to a single folder. Under this process, several
ConflictErrors may be raised, but they are captured, and
the transaction committed again. Problem solved.
However, the other side of the problem is that regular
requests, from other users, may be be aborted, and as a
result the user is presented with a Zope Error screen,
which says ConflictError.
If I've understood this correctly, it is because the
ZODB connection is hosed, and innocent reads trigger
ConflictErrors.
So, I'm wondering about turning up the number of Exceptions
each request may handle (it's 3 now, right?) and just
hope that the exception isn't raised more than 10-20
times.
Where can I increase the number of accepted exceptions
per request?
Any thoughts on the solution itself?
Cheers,
Morten