Re: [ZODB-Dev] What's best to do when there is a failure in the second phase of 2-phase commit on a storage server

2008-10-03 Thread Dieter Maurer
Jim Fulton wrote at 2008-10-1 13:40 -0400: > ... >> It may well be that a restart *may* not lead into a fully functional >> state (though this would indicate a storage bug) > >A failure in tpc_finish already indicates a storage bug. Maybe -- although "file system is full" might not be so easy to a

Re: [ZODB-Dev] What's best to do when there is a failure in the second phase of 2-phase commit on a storage server

2008-10-03 Thread Christian Theune
On Fri, 2008-10-03 at 09:55 +0200, Dieter Maurer wrote: > Jim Fulton wrote at 2008-10-1 13:40 -0400: > > ... > >> It may well be that a restart *may* not lead into a fully functional > >> state (though this would indicate a storage bug) > > > >A failure in tpc_finish already indicates a storage bug

Re: [ZODB-Dev] What's best to do when there is a failure in the second phase of 2-phase commit on a storage server

2008-10-03 Thread Dieter Maurer
Christian Theune wrote at 2008-10-3 10:32 +0200: >On Fri, 2008-10-03 at 09:55 +0200, Dieter Maurer wrote: >> Jim Fulton wrote at 2008-10-1 13:40 -0400: >> > ... >> >> It may well be that a restart *may* not lead into a fully functional >> >> state (though this would indicate a storage bug) >> > >>

Re: [ZODB-Dev] What's best to do when there is a failure in the second phase of 2-phase commit on a storage server

2008-10-03 Thread Christian Theune
On Fri, 2008-10-03 at 10:51 +0200, Dieter Maurer wrote: > That's true for a "FileStorage" -- but it may not be that easy for > other storages (e.g. "BSDDB" storage). Those storages using another system in the backend have to rely on them providing a two-phase commit API which needs to implement th

[ZODB-Dev] Object uniqueness

2008-10-03 Thread Markus Läll
Hi! In which scope does zodb preserve object uniqueness? The problem I'm having is I have Person-objects in two places, in a set of persons (root[Person], which is an OOSet) and in name-index (root[(Name, Person)], which is a OOBTree). Now if I find people by name from the name index, they seem

[ZODB-Dev] Broken instances after refactoring in ZODB

2008-10-03 Thread Adam
Hi, I wonder if anyone can help me. I've got a custom Python cgi which runs in one directory using ZODB for the database. It runs in a directory off the site root ie. /System It's got a bit unwieldy in there so I wanted to separate the core modules out as I don't really touch them any more, so ad

Re: [ZODB-Dev] What's best to do when there is a failure in the second phase of 2-phase commit on a storage server

2008-10-03 Thread Jim Fulton
On Oct 3, 2008, at 3:55 AM, Dieter Maurer wrote: > Jim Fulton wrote at 2008-10-1 13:40 -0400: >> ... >>> It may well be that a restart *may* not lead into a fully functional >>> state (though this would indicate a storage bug) >> >> A failure in tpc_finish already indicates a storage bug. > > May

Re: [ZODB-Dev] Object uniqueness

2008-10-03 Thread Markus Läll
I think I know now -- objects compare identical and equal only if they are in the same container object. (Check the code below) I don't mean to be negative, but why can't ZODB be like a big RAM? Like when i store an object to multiple places on the same DB, then it would actually be the same in ea

Re: [ZODB-Dev] Object uniqueness

2008-10-03 Thread Christian Theune
Hi, On Fri, 2008-10-03 at 15:57 +0300, Markus Läll wrote: > I think I know now -- objects compare identical and equal only if they are > in the same container object. (Check the code below) > > I don't mean to be negative, but why can't ZODB be like a big RAM? Like > when i store an object to mul

Re: [ZODB-Dev] Object uniqueness

2008-10-03 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Markus Läll wrote: > I think I know now -- objects compare identical and equal only if they are > in the same container object. (Check the code below) > > I don't mean to be negative, but why can't ZODB be like a big RAM? Like > when i store an object

Re: [ZODB-Dev] Broken instances after refactoring in ZODB

2008-10-03 Thread Marius Gedminas
On Fri, Oct 03, 2008 at 11:37:35AM +0100, Adam wrote: > Hi, I wonder if anyone can help me. > > I've got a custom Python cgi which runs in one directory using ZODB for > the database. It runs in a directory off the site root ie. /System > > It's got a bit unwieldy in there so I wanted to separate

Re: [ZODB-Dev] conflict errors in persistent ZEO client cache

2008-10-03 Thread Jeff Shell
On Sep 25, 2008, at 6:31 AM, Jim Fulton wrote: > On Sep 25, 2008, at 1:12 AM, Jeff Shell wrote: >> In ZODB 3.8.0, while prepping a customer's site to go from staging to >> production and doing a fair amount of big operations, we started >> seeing conflict errors. It was a 200MB cache size, with a p

Re: [ZODB-Dev] conflict errors in persistent ZEO client cache

2008-10-03 Thread Jim Fulton
On Oct 3, 2008, at 2:34 PM, Jeff Shell wrote: > On Sep 25, 2008, at 6:31 AM, Jim Fulton wrote: >> On Sep 25, 2008, at 1:12 AM, Jeff Shell wrote: >>> In ZODB 3.8.0, while prepping a customer's site to go from staging >>> to >>> production and doing a fair amount of big operations, we started >>>

Re: [ZODB-Dev] Broken instances after refactoring in ZODB

2008-10-03 Thread Shane Hathaway
Marius Gedminas wrote: > 1. create modules in their old locations that import all the classes > from the new locations (and do nothing else). > 2. write a script that opens the DB, iterates over all persistent > objects in it, touches every single one of them (obj._p_activate() >