t.lock2 fails

Matthias Andree matthias.andree at gmx.de
Sat Jan 11 07:11:21 CET 2003


David Relson <relson at osagesoftware.com> writes:

> I've run "make check" twice since I updated and got t.lock2.  Both tests
> have failed at t.lock2.  What's next ...?

Someone, not me today any more, should figure /why/ datastore_db or the
parts that use it break. Some ideas to get you or somebody else started:

1. release read lock, obtain write lock might not work, but it might be
   instead:
   release read lock and close, obtain write lock and open

2. our lock on the data base file handle might be too late, it might be
   necessary to instead lock before DB->open and release after
   DB->close. On that purpose, introduce an "int fd" file descriptor
   DB->variable into our own dbh structure
   and open it and lock that, before calling DB->open, and rename
   db_lock ll_lock to do just the locking, make db_lock open a file (not
   fopen), and make db_lock_release close it.

3. it might be necessary to use DB's native locking instead of our
   home-brew, but then we don't know about NFS safety.

I don't yet know much, but I need rest now.

bogofilter: [21911] [0] Trying blocking write lock on lock2.20030111/goodlist.db
bogofilter: [21898] [0] Trying blocking write lock on lock2.20030111/goodlist.db
bogofilter: [21914] [0] Trying blocking write lock on lock2.20030111/goodlist.db
# 22418 words, 1 message
bogofilter: (db) db_getvalue( '.MSG_COUNT' ), err: -30988, DB_PAGE_NOTFOUND: Requested page not found
bogofilter: [21889] [0] Got blocking write lock on lock2.20030111/goodlist.db
bogofilter: [21889] [1] Trying nonblocking write lock on lock2.20030111/spamlist.db
bogofilter: [21889] [1] Got nonblocking write lock on lock2.20030111/spamlist.db
# 22418 words, 1 message
bogofilter: (db) db_getvalue( '.MSG_COUNT' ), err: -30988, DB_PAGE_NOTFOUND: Requested page not found
bogofilter: [21908] [0] Got blocking write lock on lock2.20030111/goodlist.db
)

-- 
Matthias Andree




More information about the bogofilter-dev mailing list