Gerhard Schmidt
2018-11-12 08:44:51 UTC
Hi,
i am writing a pyramid application that uses ZODB for persistence. I'm
doing some testing right now an run my testsuite quite often right now.
Today all of my tests suddenly failing. Investigating i found that my
/tmp was full with thousands of BUCxxxxxx files. I've deleted these
files and rerun my tests an there are again about 40 BUCxxxxxx files.
So investigating what generates these files and don't clean them up
afterward, i found that when creating a Blob Object and not committing
it to the ZODB the file is created and not deleted.
ZODB uses _p_blob_ref = weakref.ref(self, cleanup) to register a cleanup
function but it seams that this is never called in the testing env as
all other _p* attributes and methods do nothing while testing.
In the running system the cleanup seams to work. As there are no such
files in my test instance
Any hint how i can fix this.
Regards
Estartu
i am writing a pyramid application that uses ZODB for persistence. I'm
doing some testing right now an run my testsuite quite often right now.
Today all of my tests suddenly failing. Investigating i found that my
/tmp was full with thousands of BUCxxxxxx files. I've deleted these
files and rerun my tests an there are again about 40 BUCxxxxxx files.
So investigating what generates these files and don't clean them up
afterward, i found that when creating a Blob Object and not committing
it to the ZODB the file is created and not deleted.
ZODB uses _p_blob_ref = weakref.ref(self, cleanup) to register a cleanup
function but it seams that this is never called in the testing env as
all other _p* attributes and methods do nothing while testing.
In the running system the cleanup seams to work. As there are no such
files in my test instance
Any hint how i can fix this.
Regards
Estartu
--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+***@googlegroups.com.
To post to this group, send email to pylons-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/79e34bb4-12aa-0e37-52a6-93bc09769d21%40augusta.de.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+***@googlegroups.com.
To post to this group, send email to pylons-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/79e34bb4-12aa-0e37-52a6-93bc09769d21%40augusta.de.
For more options, visit https://groups.google.com/d/optout.