[Mailman-Developers] Problem with MM after power outage
Barry Warsaw
barry at python.org
Sun Aug 24 23:36:49 EDT 2003
On Tue, 2003-08-19 at 15:17, Simone Piunno wrote:
> On Tuesday 19 August 2003 04:08, Barry Warsaw wrote:
>
> > > > After power was restored and the machine came up, Mailman (2.1.2) is
> > > > now spitting out errors:
> > > > File "/usr/local/mailman/Mailman/Queue/Switchboard.py", line 246, in
> > > > _ext_read dict = marshal.load(fp)
> > > > ValueError: bad marshal data
> >
> > Hmm, weird. The switchboard is written such that this shouldn't happen
> > (i.e. you shouldn't get a corrupt message.db file). It's supposed to
> > write the message first to .db.tmp and then rename it to .db in an
> > atomic operation.
>
> ok, but how do you make sure the file is really on disk instead of, e.g., half
> on disk and half on cache?
We close the file before we rename it.
-Barry
More information about the Mailman-Developers
mailing list