Article View: news.software.nntp
Article #5433Re: inn vs overchan race condition
From: Jerry Aguirre
Date: Fri, 01 Mar 1996 00:00
Date: Fri, 01 Mar 1996 00:00
52 lines
3015 bytes
3015 bytes
In article <4h3bqt$dm7@hustle.rahul.net> Rahul Dhesi <dhesi@rahul.net> writes: >I have experienced this race condition when using nn (installed to read >News directly from the spool, not via nntp). If it had been reading via NNTP then this would not have happened as nnrpd knows that the NOV files are a performance aid and not guaranteed to be complete. When nnrpd returns the data it omits NOV entries for which there is not article in the spool. When an NOV entry is missing but the article exists then nnrpd will extract the needed data from the article itself. >Four possible solutions: ... A news reader that is reading directly from the spool should not depend on NOV being 100% accurate. If an NOV entry is missing then it needs to check the spool to see if the article exists. It is wrong for a reader to decide an article doesn't exist just because there is no NOV entry. If the article does exist then ideally it would get the threading information directly from the article just as nnrpd does. I (and others) regularly see missing NOV entries. When expireover is running overchan can be locked out and get behind. When the backlog reaches a certain point innd gives up and writes it to a file. There is no proceedure for recovering the lost entries except to run expireover -a each night. There is no guarantee there will EVER be an NOV entry for an article. What should a news reader do in that case? >4. Or have inn append article headers to .overview files directly, and This would be bad for performance. If overchan has trouble keeping up then innd is also going to be slowed. Updating NOV entries, appending to an existing file, is not as bad as creating articles but it is still going to slow down INN. A less drastic measure would be to have innd wait for some kind of ACK from overchan so it knew the record was updated. At least it could still talk to other NNTP channels while this was happening. It could be updating its binary article counters but not update the disk copy of the active file until overchan acknowledged each NOV entry existed. But this kind of implies that NOV becomes an integral part of news. Currently NOV is not required to run INN or by most readers. Think of NOV as a performance enhancement add on kind of like a cache. Should an OS assume a file does not exist just because the information is not in the cache? Jerry
Technical Details
Message-ID:
<4h650a$5sv@olivea.ATC.Olivetti.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:
<4h3bqt$dm7@hustle.rahul.net>Show Full Headers
Complete Article Headers
Message-ID: <4h650a$5sv@olivea.ATC.Olivetti.Com> Subject: Re: inn vs overchan race condition Date: Fri, 01 Mar 1996 00:00:00 +0000 From: jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre) References: <4h3bqt$dm7@hustle.rahul.net> 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: 141695107 Organization: Olivetti ATC; Cupertino, CA; USA Newsgroups: news.software.nntp