[ZODB-Dev] Blob savepoints leaving garbage?

Tres Seaver tseaver at palladion.com
Fri Jul 10 11:52:24 EDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Christian Theune wrote:
> On Thu, Jun 26, 2008 at 08:32:25PM +0200, Christian Theune wrote:
>> Hi,
>>
>> I think I didn't totally grasp the way that blob savepoints work correctly. At
>> one of our installations we have lots of .spb files left around. 
>>
>> Looking at the code I don't see where .spb files get cleaned up again on
>> savepoint aborts.
> 
> I reviewed the savepoint tests and see that they don't check for cleanup:
> neither on rollback, nor on abort.
> 
>> On the bushy branch I found that having the TmpStore create directory
>> structures is probably a bad idea. I propose to have it create a directory
>> `savepoints` in the temporary directory and create files called
>> `oidrepr-tidrepr.spb`.
> 
> I implemented this on the branch and it seems to work well. I find it easier
> to inspect on the filesystem than having savepoint state being distributed
> over the whole structure.

Did a fix for the leaked saveepoint stuff ever get committed?

 https://bugs.launchpad.net/zodb/+bug/323067

Can we safely remove anything under tmp/savepoints, assuming that we
know there is not a transaction running?

			
Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKV2O4+gerLs4ltQ4RAjo9AJ0W4ShPfPl7SXCKjQNDm7rNc2ZrGQCglbvL
N3WVI/IeVhocIWWNGPnmfDw=
=h36T
-----END PGP SIGNATURE-----



More information about the ZODB-Dev mailing list