Thread View: news.software.nntp
11 messages
11 total messages
Started by Luu Tran
Wed, 13 Nov 2002 09:23
ARTICLE by artno vs msgid
Author: Luu Tran
Date: Wed, 13 Nov 2002 09:23
Date: Wed, 13 Nov 2002 09:23
11 lines
1285 bytes
1285 bytes
Hello I've noticed that with some servers if I use ARTICLE by msgid I get a 423 error but using artno succeeds. I'm guessing the server keeps a table of all msgids which may not be large enough to track all articles on the server (or at least not kept in sync). Is this common? -- luu author of Xnews - http://Xnews.newsguy.com
Re: ARTICLE by artno vs msgid
Author: Luu Tran
Date: Wed, 13 Nov 2002 16:32
Date: Wed, 13 Nov 2002 16:32
16 lines
1576 bytes
1576 bytes
curt@kcwc.com (Curt Welch) wrote in news:20021113152940.724$XM@newsreader.com... > > And you can assume that a newsreader which only tries to accesss by > Message-ID is going to have more problems with missing articles than > one that only tries to access by article number. I normally fetch by article no., but I have a feature that lets the user pull headers from one server and retrieve the articles from another, and that's where this problem shows up. -- luu author of Xnews - http://Xnews.newsguy.com
Re: ARTICLE by artno vs msgid
Author: Francois Petillon
Date: Wed, 13 Nov 2002 19:52
Date: Wed, 13 Nov 2002 19:52
15 lines
1747 bytes
1747 bytes
Luu Tran a �crit : > I've noticed that with some servers if I use ARTICLE by msgid I get a 423 > error but using artno succeeds. I'm guessing the server keeps a table of > all msgids which may not be large enough to track all articles on the > server (or at least not kept in sync). Is this common? I may be wrong but it looks like an Inn with tradspool (no need for an history to retrieve an article). You may also have the contrary : with Diablo, cancelled articles will only be removed from the overview (frontal) and not from history (spooler). Thus a cancelled article will be still accessible by M-ID and not by artno. Fran�ois
Re: ARTICLE by artno vs msgid
Author: Andrew - Supernews
Date: Wed, 13 Nov 2002 20:26
Date: Wed, 13 Nov 2002 20:26
23 lines
2183 bytes
2183 bytes
In article <3DD2AD97.7E8AC2E8@proxad.net>, Francois Petillon wrote: > Luu Tran a �crit : >> I've noticed that with some servers if I use ARTICLE by msgid I get a 423 >> error but using artno succeeds. I'm guessing the server keeps a table of >> all msgids which may not be large enough to track all articles on the >> server (or at least not kept in sync). Is this common? > > I may be wrong but it looks like an Inn with tradspool (no need > for an history to retrieve an article). more likely one of the Highwind servers, which have a fixed-size history that people often seem to configure to be too small. (Actually we have the same problem, but on our server it currently affects only articles which are older than about 250 days; our alt.* text spool is currently running a retention slightly higher than that, so the oldest articles only show up by number. We currently have 100 million history slots, though some of those are consumed by expired articles.) -- Andrew, Supernews http://www.supernews.com - individual and corporate NNTP services
Re: ARTICLE by artno vs msgid
Author: Curt Welch
Date: Wed, 13 Nov 2002 20:29
Date: Wed, 13 Nov 2002 20:29
37 lines
2815 bytes
2815 bytes
xnews@newsguy.com wrote: > Hello > > I've noticed that with some servers if I use ARTICLE by msgid I get a 423 > error but using artno succeeds. I'm guessing the server keeps a table of > all msgids which may not be large enough to track all articles on the > server (or at least not kept in sync). Is this common? Too common. Yes, the "table" used to look up articles by Message-ID is commonly refered to as the "history file". The history file should be in-sync with what's in the news spools, which should be in-sync with what is reported for each group in terms of article numbers but on far too many servers the need for keeping this information consisetent is ignored. With the Highwind servers, the size of the history file is fixed by a configuartion parameter and if you don't set it high enough for the size news spool you have, the problem you talk about shows up. But because most newsreaders don't try to access by Message-ID for "normal" article retrevial, the admins many times don't even know there server has this problem. Generally, if you find a server doing that, you should report it to the admin and see if you can get them to fix it. But for the general problem of writing NNTP clients, you have to assume that what you can get my Message-ID won't always match what you can get by article number. Inconsistencies can happen in both directions. And you can assume that a newsreader which only tries to accesss by Message-ID is going to have more problems with missing articles than one that only tries to access by article number. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: ARTICLE by artno vs msgid
Author: J.B. Moreno
Date: Wed, 13 Nov 2002 21:15
Date: Wed, 13 Nov 2002 21:15
20 lines
1880 bytes
1880 bytes
In article <Xns92C573E90584luutrangeocities@192.216.136.216>, Luu Tran <xnews@newsguy_.com.invalid> wrote: > Hello > > I've noticed that with some servers if I use ARTICLE by msgid I get a 423 > error but using artno succeeds. I'm guessing the server keeps a table of > all msgids which may not be large enough to track all articles on the > server (or at least not kept in sync). Is this common? As Andrew said elsewhere, this is typically a problem with someone using a Highwind server (Cyclone, Typhoon, Twister), with a history database that's too small for their spool -- usually it's not really that much of a problem because it's the older articles where this happens, so unless they've got it set /way/ too small, it only effects articles that are going to expire soon anyway. -- J.B. Moreno
Re: ARTICLE by artno vs msgid
Author: Stig Sandbeck Mathisen
Date: Wed, 13 Nov 2002 21:37
Date: Wed, 13 Nov 2002 21:37
16 lines
1711 bytes
1711 bytes
Andrew - Supernews <andrew+nonews@supernews.com> writes: > more likely one of the Highwind servers, which have a fixed-size > history that people often seem to configure to be too small. You don't say. I removed binaries from our news servers a while ago. The binaries spool area was recently reclaimed as text article storage, and the small history beast came up and bit me while I was looking the other way. :\ -- SSM - Stig Sandbeck Mathisen Trust the Computer, the Computer is your Friend
Re: ARTICLE by artno vs msgid
Author: Curt Welch
Date: Thu, 14 Nov 2002 04:12
Date: Thu, 14 Nov 2002 04:12
32 lines
2620 bytes
2620 bytes
xnews@newsguy.com wrote: > curt@kcwc.com (Curt Welch) wrote in > news:20021113152940.724$XM@newsreader.com... > > > > > And you can assume that a newsreader which only tries to accesss by > > Message-ID is going to have more problems with missing articles than > > one that only tries to access by article number. > > I normally fetch by article no., but I have a feature that lets the user > pull headers from one server and retrieve the articles from another, and > that's where this problem shows up. Another possible option is to do xhdr <message-id> on the other servers and build your own mapping of message-id to article number and then fetch by article number on the second. xhdr will be a lot faster than having to do a full xover on the others but less likely to run into the type of problems you are seeing. Or I guess if you want to write more code, try to test the server to see if the oldest articles in the group can be correctly fetched by Message-ID. When fetching by Message-ID doesn't work correctly, that's the most likely place for it to fail. You can then either warn the user about the problem or just automatcially switch to the xhdr trick, etc. Warning the user about the problem and getting them to report it to the admin of the server would be a good thing I think. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: ARTICLE by artno vs msgid
Author: Luu Tran
Date: Thu, 14 Nov 2002 14:04
Date: Thu, 14 Nov 2002 14:04
21 lines
1948 bytes
1948 bytes
curt@kcwc.com (Curt Welch) wrote in news:20021113231223.294$BY@newsreader.com... > Another possible option is to do xhdr <message-id> on the other > servers and build your own mapping of message-id to article number > and then fetch by article number on the second. xhdr will be a lot > faster than having to do a full xover on the others but less likely > to run into the type of problems you are seeing. > Thanks. But if ARTICLE <msgid> fails, wouldn't XHDR <msgid> fail also? Or are they using different files? Another question, if you don't mind: are articles expired globally, i.e., there's no chance that an article can be expired in one group but still retrievable from a xposted group using ARTICLE <artno>, right? -- luu author of Xnews - http://Xnews.newsguy.com
Re: ARTICLE by artno vs msgid
Author: greg andruk
Date: Fri, 15 Nov 2002 01:32
Date: Fri, 15 Nov 2002 01:32
23 lines
2359 bytes
2359 bytes
Luu Tran wrote: > Thanks. But if ARTICLE <msgid> fails, wouldn't XHDR <msgid> fail also? > Or are they using different files? Both will likely fail together. You could reasonably use: GROUP blah.blah XHDR message-id 1- ..and then grep through to see if the article is there. A local XOVER-like cache would make this kind of thing a bit less chatty, and you're rapidly approaching a full-fledged offline reader too =) > Another question, if you don't mind: are articles expired globally, i.e., > there's no chance that an article can be expired in one group but still > retrievable from a xposted group using ARTICLE <artno>, right? It is possible, but probably not a common enough case to bother testing. On a classical file-per-article server, you can unlink the article in one group and still have it available in the others. Some cache-type servers could produce similar weirdness.
Re: ARTICLE by artno vs msgid
Author: Curt Welch
Date: Fri, 15 Nov 2002 16:47
Date: Fri, 15 Nov 2002 16:47
87 lines
5710 bytes
5710 bytes
xnews@newsguy.com wrote: > curt@kcwc.com (Curt Welch) wrote in > news:20021113231223.294$BY@newsreader.com... > > > Another possible option is to do xhdr <message-id> on the other > > servers and build your own mapping of message-id to article number > > and then fetch by article number on the second. xhdr will be a lot > > faster than having to do a full xover on the others but less likely > > to run into the type of problems you are seeing. > > > > Thanks. But if ARTICLE <msgid> fails, wouldn't XHDR <msgid> fail also? > Or are they using different files? Sorry, what I was thinking and what I typed was not the same. I might have confused you. I meant to say, "use: XHDR Message-ID art-range". So you use XHDR to do a bulk dump of all the message-ids in the group. That will normally work even if lookup by message-id is not working. If you try to use xhdr by message-id, such as: XHDR From <some-message-id> That will fail just like an ARTICLE <some-message-id> fails. > Another question, if you don't mind: are articles expired globally, i.e., > there's no chance that an article can be expired in one group but still > retrievable from a xposted group using ARTICLE <artno>, right? On most servers today that's the case, and it's probably ok for you to assume that in your newsreader code, but there are always exceptions. I think it's safe for you to just assume that if the aricle expired from one group you shouldn't waste any time checking the other groups and just assume it's gone from those as well. That will be the "norm". Since the begining of time, people have had problems making news servers keep up with the load - either too many users, and/or too much news volume. And when things stop working, people do whatever they can come up with to make it work again. And many times, these "hacks" will cause unexpected results from the client's perspective. And sometimes that means aritcles vanish from one group but can still be found in another. For example, long ago, the basic way to store articles was to create a directory for each newsgroup hierarchy, and each article was stored as a file where the name of the file was the article number. Cross posted articles were not stored as multiple files because they used Unix hard-links (a special feature of Unix file systems you don't find elsewhere) to make all the directory entries point to only one file on the disk. The expire program would run once a night and scan every newsgroup, one at a time, and figure out which articles needed to be removed. On Unix, if you remove one of the links to a file, the file does not get removed. It's only when the last link has been removed. So it was natural for the expire program to remove the file from some groups, but leave it in others if the expire configuration allowed for longer retnetion in some of the cross-posted groups than others. But, there were also options to have it remove all links if any one link was removed - and it was common to do it that way. Today, most article storage systems make their expire decisions based on the article, and not by the newsgroup, so once the system decideds it is time to remove the article, it's gone for good and can't be referenced by any of it's names even if something else is broken, like XOVER, and is still reporting that the article exists in some group. But, there are sites that are running multiple back-end servers which have articles distrbuted by newsgroup (*mp3* is on server A, *warze* on B, everything else is on server C, etc.). They then have front-end servers which make proxy connections to the back end servers based on which newsgroup you are trying to access. Any articles cross posted to groups that are split across servers will end up being stored on multiple servers, and they will end up being expired at different times. So this is another case where it is possible (though not at all common) for a cross posted article to expire from one group, but not the other. Even on that type of configuration, the groups assigned to each back-end server will be selected to minimize cross-post problems, so you will have to do something like cross post an article from an mp3 group and a text group before you will actaully see the expire effect happen. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads