Re: PdataStreamIterator bug?
Roché Compaan <roche-kb4xc5yObU3kQYj/0HfcvhBnub05S5/[email protected]> Thu, 25 May 2006 20:45:57 +0200
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Message-ID | <1148582758.23983.5.camel@kwaaitjie> |
On Thu, 2006-05-25 at 13:29 -0300, Sidnei da Silva wrote: > On Thu, May 25, 2006 at 06:15:01PM +0200, Roché Compaan wrote: > | In my understanding of the ZODB, an object is only ghostified if it > | hasn't been accessed in a long time and it isn't referenced by the cache > | manager, or the transaction aborts. Since we are returning the data on > | Pdata objects while accessing them, I don't understand how they can > | suddenly be ghostified. > | > | How can I re-create the behaviour you describe? Or what is the > | circumstances under which this error becomes likely. > > - Upload a large file > - Restart Zope and download it via FTP or WebDAV as the very first > thing (to ensure the Pdata chain has not been loaded from ZODB). > > Should be very easy to reproduce. Yes, it was. Now since this isn't a problem with FileSystemStorage, can I request that 'data' returned by marshaller.marshall is not wrapped in a PdataStreamIterator if data already implements the IStreamIterator interface? -- Roché Compaan Upfront Systems http://www.upfrontsystems.co.za ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642