[ZODB-Dev] weird BTrees KeyError (CVS HEAD)
Christian Reis
kiko at async.com.br
Fri Jun 27 16:47:24 EDT 2003
On Fri, Jun 27, 2003 at 02:22:40PM -0400, Jeremy Hylton wrote:
> On Fri, 2003-06-27 at 14:13, Christian Reis wrote:
> > I have a BTree (held by ListIndex for the IC-interested) that uses
> > PersistentLists as keys. I'm running into the following situation:
>
> Unless you are very careful, it is not safe to use a PersistnetList as a
> BTree key. If the PersistentList is ever mutated, it may not have the
> same place in the total order of the keys. Are you sure that these
> lists are never mutated and that their contents are totally ordered?
Would a normal list be safe, even while mutating?
This really looks like a race condition, having said that (since the
error is not 100% consistent)..
Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
More information about the ZODB-Dev
mailing list