Great Circle Associates Majordomo-Users
(April 1997)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Sporadic 550 & 554 errors during heavy loads?
From: Dave Wolfe <dwolfe @ risc . sps . mot . com>
Date: Fri, 11 Apr 1997 15:55:51 -0500 (CDT)
To: twells @ shore . net
Cc: majordomo-users @ greatcircle . com, majordomo-workers @ greatcircle . com (Majordomo developer's mailing list)
In-reply-to: <Pine.GSO.3.96.970411155446.381r-100000@nsa.ecosoft.com> from "Tabor J. Wells" at Apr 11, 97 04:08:30 pm
Reply-to: Dave Wolfe <david_wolfe @ risc . sps . mot . com>

[ Copied to Mj-workers due to the possible bug ]

[ Tabor J. Wells writes: ]
> 
> I have had two list owners report this problem, each of which corresponds
> to an extremely heavy load on the machine running majordomo.
[...]
>    ----- Transcript of session follows -----
> 550 :include:/usr/local/mail/lists/a-parents-china... Cannot open
> /usr/local/mail/lists/a-parents-china: Operation not permitted

I'd say this is caused by the way Mj shuffles the list file during an
unsubscribe. The file locking only prevents other Mj processes from
interfering, but does nothing to prevent sendmail from accessing the
list file. For example, consider what an unsubscribe does, in part:

1) listfile is edited into listfile.new
2) listfile is linked to listfile.old
3) listfile is unlinked
4) listfile.new is linked to listfile
5) listfile.old is unlinked
6) listfile.new is unlinked

On a busy system, it's quite conceivable that this sequence is
interrupted for a significant period of time between steps 3 and 4.
During that time sendmail tries to access listfile and fails because the
file isn't there at that point.

Unless someone can prove otherwise, I'll submit a patch to combine steps
3 and 4 into "rename listfile.new to listfile", which should be an
atomic operation.

-- 
 Dave Wolfe


References:
Indexed By Date Previous: Re: Sporadic 550 & 554 errors during heavy loads?
From: Rich Pieri <rich.pieri@prescienttech.com>
Next: Invalid address.
From: Rodolfo Gonzalez Gonzalez <rgg@labpar1.cs.buap.mx>
Indexed By Thread Previous: Re: Sporadic 550 & 554 errors during heavy loads?
From: Rich Pieri <rich.pieri@prescienttech.com>
Next: Invalid address.
From: Rodolfo Gonzalez Gonzalez <rgg@labpar1.cs.buap.mx>

Google
 
Search Internet Search www.greatcircle.com