Trouble retrieving articles from SM

Jeffrey M. Vinocur jeff at litech.org
Thu Oct 3 18:14:24 UTC 2002


On Thu, 3 Oct 2002, Russ Allbery wrote:

> Jeffrey M Vinocur <jeff at litech.org> writes:
> > Ok, so what do I have to do to rebuild tradspool.map?
> 
> Figure out which portion of the token represents the newsgroup number in
> tradspool.map (the code to take it apart is in the tradspool backend
> somewhere; I forget exactly where).  

Wishlist:  `sm -v` or something did an analysis of the token and printed 
out the different components.


> Now go through overview, and for each newsgroup in overview, grab the
> token of one of the non-crossposted articles in that group, figure out
> the group number, and write that out to a new tradspool.map file

*whimper*  Luckily it's just the one group that got created in this 
Windows Of Nastiness, and I know what it should be from playing with gdb 
earlier (and because it's the next number available).  Yup, works now.

(And it doesn't need to be a non-crossposted article; just one in which 
that group appears first in Xref, it looks like.  I suppose we could add 
the code to rebuild tradspool.map to makehistory, if we wanted.)


> And there's an open TODO item concerning the brokenness of how
> tradspool.map is currently being written (it's using stdio rather than
> using write, which means that it runs out of file descriptors a lot faster
> than the rest of INN does).

Yeah.

Lots of things get really weird when the system runs out of file 
descriptors.  (For example, all of your LDAP files containing your user 
database get truncated, and as a result no one can log in and you start 
bouncing mail.)


-- 
Jeffrey M. Vinocur
jeff at litech.org



More information about the inn-workers mailing list