Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: SpamAssassin: users

sa-update concurrency robustness

 

 

SpamAssassin users RSS feed   Index | Next | Previous | View Threaded


georgi at belwue

Jun 15, 2007, 1:38 AM

Post #1 of 2 (210 views)
Permalink
sa-update concurrency robustness

Hi,

I am wondering if bad things happen in case multiple
instances of sa-update run at the same time, e.g. if a
manual call interferes with a call invoked by cron in
background.

As I understand the code, sa-update downloads any new
rules into a temporary directory where it does some
sanity checks (signature verification, lint). After then
it cleans the channel directory and extracts the downloaded
tar archive again into the channel directory. Basically
the last sa-update run wins, and no data corruption should
occur. But maybe I have missed some point.

Thanks,

-Juergen


spamassassin at dostech

Jun 15, 2007, 10:47 AM

Post #2 of 2 (209 views)
Permalink
Re: sa-update concurrency robustness [In reply to]

Juergen Georgi wrote:
> Hi,
>
> I am wondering if bad things happen in case multiple
> instances of sa-update run at the same time, e.g. if a
> manual call interferes with a call invoked by cron in
> background.
>
> As I understand the code, sa-update downloads any new
> rules into a temporary directory where it does some
> sanity checks (signature verification, lint). After then
> it cleans the channel directory and extracts the downloaded
> tar archive again into the channel directory. Basically
> the last sa-update run wins, and no data corruption should
> occur. But maybe I have missed some point.

Yeah, the last one finished should win.

Of course there's always exceptions... if the each try to install a
different update version that includes different files, you could see
some funkiness.


Daryl

SpamAssassin users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.