Re: Unsafe Pickle Saving
David Abrahams <dave-UB3wUj7V41K5azolltMz9laTQe2KTcn/@public.gmane.org> Mon, 22 Oct 2007 01:22:54 -0400
| Newsgroups | gmane.mail.spam.spambayes.devel |
|---|---|
| Message-ID | <[email protected]> |
on Sun Oct 21 2007, skip-AT-pobox.com wrote: > David> The result was that, when I was doing server-side filtering, > David> cache pickles would be read while being written, and SpamBayes > David> wasn't prepared to deal with the corruption. > > David, > > Can you explain how the pickle would be read and written simultaneously? > Are we talking multiple apps or the same app from multiple threads? > (Haven't looked at your patch yet...) I assume it's the same app from multiple processes. I don't know how my server hands messages off to procmail -- it could well be running them in parallel. And then there's my cron job that does training once daily, which could happen at the same time as any message arrives. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com