possible message count corruption?

Jeremy Blosser jblosser-bogofilter at firinn.org
Thu Sep 19 21:14:45 CEST 2002


On Sep 19, David Relson [relson at osagesoftware.com] wrote:
> At 02:20 PM 9/19/02, Adrian Otto wrote:
> >Jeremy,
> >
> >.. [snip] ...
> >
> >Please see my comments below about the problem you are seeing...
> >
> >> Anyway.  For each message we're running:
> >> bogofilter -v >> bogofilter.log; bogofilter -s -v >> bogofilter.log
> >> This ran fine for most of yesterday, but then last night I was glancing 
> >at
> >> the log and saw this:
> >>
> 
> Could there possibly be two copies of bogofilter running?  If the 
> *list.count file was being updated by one and the other was reading it, 
> there could be race/contention problem.

I guarantee there were multiple copies running, as there would be on any
system that was running it per incoming message.  Isn't that the expected
behaviour mode?  

> Also, there's a plan to put the message count into the database.  This 
> would (presumably) protect against a race problem.

That would probably help.  My understanding was that file locking was
already in place to prevent race problems here.

I'll try to get the log information to Adrian shortly.

For summay digest subscription: bogofilter-digest-subscribe at aotto.com



More information about the Bogofilter mailing list