Article View: news.software.nntp
Article #46180Re: INN 2.3.0 public beta
From: Curt Welch
Date: Sat, 29 Apr 2000 00:00
Date: Sat, 29 Apr 2000 00:00
54 lines
3467 bytes
3467 bytes
Russ Allbery <rra@stanford.edu> wrote: > The overview performance in 2.3.0 is *much* better. And Heath's overview > implementation based on Berkeley DB strikes me as one of the better ideas > I've seen implemented in a long time, since it lets us news server > programmers offload the whole ugly database coding problem to the quite > competent Sleepycat folks. I used the Berkeley DB stuff as the basis for a database server I wrote because I too figured they "knew" what they were doing. Worst mistake I ever made. Buggy as hell. I only used the hash stuff. And I used it in ways that were somewhat unusal for it, which is why I found various bug when others continue to use it without problems. But because of the bugs I found, I'll never trust their code again. They support some type of complex system that allows you to write key/value pairs that are larger than the block size. And that's the type of stuff I figured it would be better to use their tested code for instead of doing it myself. But, as it turns out, if you write a key/value that's bigger than a block, then overwrite the key/value with a new value which makes it smaller than a block again, it corrupts the databse. Every time. Their response - use the new stuff, the old stuff had bugs. And if you check the release history, you see a constant flow of bug fix releases comming from them. But the "old" stuff with this bug is still the verion of the DB code that ships with FreeBSD (well at least up to FreeBSD 3.4 which is the most current I have running here). My soultion -- use blocks much larger than what I wanted to use and limit the size of data I allow to be stored in the DB -- which causes me some real problems at the application level but at lest the DB doesn't get corrupted any more. Bug 2. They have routines for doing a scan of the database. You call a function to return the next key/value from the DB. But, if you modify the DB enough in the middle of the scan (don't know what "enough" is at this point), the scan routines will return a corrupted key/value structure. The pointers and size variables in the structure have been overwritten with data from the database. My solution -- check for obvious bogus values and ignore them. What a hack. Nope, I don't trust that code at all any more. Anybody that can ship database code with errors as bad as that just can't be on my "trused coder" list. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20000428200032.678$zG@newsreader.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:
<yl7ldiu3j8.fsf@windlord.stanford.edu> <8ecabt$2kb0$1@info.cs.uofs.edu> <ylya5xlucr.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <20000428200032.678$zG@newsreader.com>
Subject: Re: INN 2.3.0 public beta
Date: Sat, 29 Apr 2000 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <yl7ldiu3j8.fsf@windlord.stanford.edu> <8ecabt$2kb0$1@info.cs.uofs.edu> <ylya5xlucr.fsf@windlord.stanford.edu>
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: 616997857
X-User: Curt@NewsReader.Com
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Newsgroups: news.software.nntp