Article View: news.software.nntp
Article #25012Re: actived <-> actsync (intermittent) fatal conflict
From: Joe Greco
Date: Thu, 08 Jan 1998 00:00
Date: Thu, 08 Jan 1998 00:00
40 lines
2678 bytes
2678 bytes
In news.software.nntp article <34b6394a.222763451@news.rdc1.sfba.home.com>, trevor@home.net (Trevor Fiatal) wrote: : :Here's an interesting one. : :We're using actsync, run via a wrapper script out of 'cron', on our 15+ :regional data center news servers to sync up against a 'master' news server :here in California. This is a Good Thing, because it allows me to process :cmsgs and do manual new/rm/changegroups on a single box and have it propagate :automagically. : :We're also running actived; while Joe sent me a pointer to his experimental :new code, I haven't had time to port it to Solaris, and thus we're using the :one shipped in the Insync patch bundle. (FYI, we're running 1.7.2, plus :Insync-1.1d, plus a few patches of my own.) : :The problem arises when a significant (>20) number of groups are acted upon by :actsync during its nightly run. When actsync sends its commands to innd, no :matter what I set the sleep interval to, actived apparently gets temporarily :locked out of accessing the active file, which causes an abort and exit. : :Alternatively, it may be getting upset because it's reading the file while :it's being rewritten to disk, gets a partial line, and *this* causes the :exit(1). I actually think this is what's happening. : :Has anyone taken the time to beef up the error-handling within actived? It :seems to me that it's just a little too quick to give up and die, especially :considering that it could back off for UPDATE_INTERVAL seconds and try again, :maybe two or three times, before aborting and exiting. I thought about this possibility when I wrote it, but basically I stole a bunch of existing nnrpd code, and used it as-is. :-) As written, it can't really back off, because it's already done away with data structures (IIRC). It's GOTTA load that active file. However, it could be made to retry it a few times (perhaps with a sleep(1)). ... JG
Technical Details
Message-ID:
<6948ot$q7a@newsops.execpc.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<34b6394a.222763451@news.rdc1.sfba.home.com>Show Full Headers
Complete Article Headers
Message-ID: <6948ot$q7a@newsops.execpc.com> Subject: Re: actived <-> actsync (intermittent) fatal conflict Date: Thu, 08 Jan 1998 00:00:00 +0000 From: jgreco@ns.sol.net (Joe Greco) References: <34b6394a.222763451@news.rdc1.sfba.home.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 314194790 Sender: jgreco@earth.execpc.com X-Complaints-To: abuse@execpc.com X-Trace: gotham-globe.newsops.execpc.com 884319837 26858 (None) 169.207.16.1 Organization: sol.net Network Services - Milwaukee, WI Newsgroups: news.software.nntp