durusmail: durus-users: "root_is"
"root_is"
2006-06-27
2006-06-28
"root_is"
Jesus Cea
2006-06-27
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sorry to bother you with such a trivial thing, but...

In durus.btree code, there is a class variable called "root_is"that is
not ever use in the entire Durus codebase. :-??


I'm still trying to triagle my bug. Not sure yet if the bug is in my
code or in durus one. The symptom: under unknown circunstances (rare;
I'm writting about 60-100 commits per second, and only saw two
ocurrences in a month) a btree can get two entries with the same key!.
That is, of course, impossible!!. But I'm seeing it :-). I can see both
entries iterating over the btree. Scary.

Obviously, the suspect is my own code, that uses threads heavily,
sharing a single durus connection. I don't use multiple connections
since each thread life is very brief (<<1 second) and sharing a single
connection also shares an unified object cache pool. Of course I take
care to serialize any access to durus storage with a mutex, so no
concurrent access.

And the bug is such a rare ocurrence that debugging it is a nightmare
since I can't manage to reproduce it myself.

Life sucks! :-)

- --
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea@argo.es http://www.argo.es/~jcea/ _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:jcea@jabber.org         _/_/    _/_/          _/_/_/_/_/
                               _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBRKGZDZlgi5GaxT1NAQJ8KwP9Fzi4fyBqJybYymNMtc+nbybSfrp8AAhO
KLjjOkzlKkhANXEdsGrLvTvlEwNR3jrNne6H/86ueud+HnN0GxQjYhBfGj/BX6tu
OvvpImtQKUMkwxxO3iJPWpm4u9gUec9ogLmWlgQwXPWUxpoQCepCgXEqB3hQTiZm
rLA6LxJMz98=
=bNIf
-----END PGP SIGNATURE-----
reply