homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mhammond
Recipients
Date 2005年11月04日.04:20:22
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=14198
The db_deadlock program ends up being equivalent to a thread
repeatedly calling:
 dbenv.lock_detect(bsddb.db.DB_LOCK_DEFAULT, 0)
For completeness, I attach deadlock_hammer.py - a version
that uses yet another thread to perform this lock detection.
 It also catches the deadlock exceptions, printing but
ignoring them. Also, due to the way shutdown is less than
graceful, I found I needed to add DB_RECOVER_FATAL to the
env flags, otherwise I would often hang on open unless I
clobbered the DB directory. On both my box (where it took a
little while to see a deadlock) and on a dual-processor box
(which provoked it much quicker), this version seems to run
forever (although with sporadic performance)
History
Date User Action Args
2007年08月23日 14:15:04adminlinkissue775414 messages
2007年08月23日 14:15:04admincreate

AltStyle によって変換されたページ (->オリジナル) /