#43 — POSKeyError after BlobField.set

by Joerg Baach last modified Aug 16, 2010 09:57 PM
State Resolved
Version: 1.0
Area Functionality
Issue type Bug
Severity Medium
Submitted by Joerg Baach
Submitted on Aug 10, 2010
Responsible Andreas Zeidler
Target release:
When having lots of simultanious write requests (e.g. I use firefox file drag and drop with 20 files) some of the blob files don't seem to get written - instead when trying to access them (e.g. when indexing their size via reindexObject) a POSKeyError("No blob file", oid, serial) gets thrown.

This seems to fixable by closing the BlobFile in plone.app.blob.adapters.stringio.BlobbableStringIO. See

http://baach.de/[…]/view

At least this works for me
Steps to reproduce:
20 simultanious calls of

  BlobField.set
  <any access on the blob>


 
Added by Joerg Baach on Aug 12, 2010 08:53 AM
Maybe, just maybe a false alarm. At least the error can be avoided if a transaction.savepoint() is set before doing anything with the blob
Added by Andreas Zeidler on Aug 12, 2010 03:04 PM
Issue state: UnconfirmedResolved
Responsible manager: (UNASSIGNED)witsch
http://dev.plone.org/plone/changeset/38714 changes all `IBlobbable` adapters to explicitly close the blobs after writing to them — being explicit is better here no matter if this helps with your issue or not.

apart from that, thanks for the report & please let me know should the problem occur again...
Added by Andreas Zeidler on Aug 12, 2010 03:05 PM
trying to comment on your blog entry yield a site error, btw... ;)
Added by Joerg Baach on Aug 12, 2010 08:05 PM
Need to fix the commenting, will do so once I have this intranet tool running. Thx a lot! :-)
Added by Andreas Zeidler on Aug 16, 2010 09:57 PM
btw, since david (glick) just mentioned it, would you perhaps care to open-source that drag & drop integration you built for your intranet? i think that would make a great addition to plone... ;)

No responses can be added.