🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #25005

actived <-> actsync (intermittent) fatal conflict

#25005
From: Trevor Fiatal
Date: Thu, 08 Jan 1998 00:00
39 lines
2440 bytes

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.

-Trevor

--
/--------------------------------=-------------------------------------\
|Trevor Fiatal - trevor@home.net | WANTED: Experienced Usenet and mail |
|Internet Applications Architect | systems admin. Relocation available |
|@Home Network, SF Bay Area, CA  | for right candidate. Email for info.|
\--------------------------------|-------------------------------------/

Technical Details
Message-ID: <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

Show Full Headers
Complete Article Headers
Message-ID: <34b6394a.222763451@news.rdc1.sfba.home.com>
Subject: actived <-> actsync (intermittent) fatal conflict
Date: Thu, 08 Jan 1998 00:00:00 +0000
From: trevor@home.net (Trevor Fiatal)
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: 314062261
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: @Home Network
Newsgroups: news.software.nntp