Re: [ZODB-Dev] RelStorage, history-free, pack causes POSKeyError with BTreeFolder2

2011-01-31 Thread Jim Fulton
On Fri, Jan 28, 2011 at 4:58 PM, Jürgen Herrmann wrote: ... >  Afaics you use zodbpack's default of "days=0". This is known to produce >  POSKeyErrors if the database is written to while packing. It can lead to POSKeyErrors under certain pathological cases, but Is not generally a problem in pract

Re: [ZODB-Dev] RelStorage, history-free, pack causes POSKeyError with BTreeFolder2

2011-01-31 Thread Shane Hathaway
On 01/31/2011 06:02 PM, Chris Withers wrote: > On 28/01/2011 21:58, Jürgen Herrmann wrote: >>Afaics you use zodbpack's default of "days=0". This is known to produce >>POSKeyErrors if the database is written to while packing. > > Where is this documented? It is not known to me. :-) > I'll

Re: [ZODB-Dev] RelStorage, history-free, pack causes POSKeyError with BTreeFolder2

2011-01-31 Thread Chris Withers
On 28/01/2011 21:58, Jürgen Herrmann wrote: > Afaics you use zodbpack's default of "days=0". This is known to produce > POSKeyErrors if the database is written to while packing. Where is this documented? Does this apply to history-keeping or history-free storages? > Try with > something >

Re: [ZODB-Dev] RelStorage, history-free, pack causes POSKeyError with BTreeFolder2

2011-01-28 Thread Shane Hathaway
On 01/28/2011 05:34 AM, Chris Withers wrote: > bin/generate --zap --folder_depth 3 > > Leave it running for a minute or two, and then in another do: > > bin/zodbpack pack.conf Thanks to this test, I found a serious flaw in the history-free variant of packing. Currently, the history-free and hist

Re: [ZODB-Dev] RelStorage, history-free, pack causes POSKeyError with BTreeFolder2

2011-01-28 Thread Chris Withers
On 28 Jan 2011, at 21:58, Jürgen Herrmann wrote: > On Fri, 28 Jan 2011 12:34:35 +, Chris Withers wrote: >> Bingo: >> >> svn co https://secure.simplistix.co.uk/svn/relstorage_pack -r 4595 >> cd relstorage_pack >> python2.6 bootstrap.py >> bin/buildout >> >> Then in one terminal: >> >> bin

Re: [ZODB-Dev] RelStorage, history-free, pack causes POSKeyError with BTreeFolder2

2011-01-28 Thread Jürgen Herrmann
On Fri, 28 Jan 2011 12:34:35 +, Chris Withers wrote: > Bingo: > > svn co https://secure.simplistix.co.uk/svn/relstorage_pack -r 4595 > cd relstorage_pack > python2.6 bootstrap.py > bin/buildout > > Then in one terminal: > > bin/generate --zap --folder_depth 3 > > Leave it running for a minute

Re: [ZODB-Dev] RelStorage, history-free, pack causes POSKeyError with BTreeFolder2

2011-01-28 Thread Chris Withers
Bingo: svn co https://secure.simplistix.co.uk/svn/relstorage_pack -r 4595 cd relstorage_pack python2.6 bootstrap.py bin/buildout Then in one terminal: bin/generate --zap --folder_depth 3 Leave it running for a minute or two, and then in another do: bin/zodbpack pack.conf After a bit I get: T