Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Storable CPAN distribution.

Report information
The Basics
Id: 51046
Status: new
Priority: 0/
Queue: Storable

People
Owner: Nobody in particular
Requestors: TONVOON [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.12
Fixed in: (no value)



Subject: Stored file of 0 bytes
Hi, We've seen that in the case of a heavy load on a server, a stored file can have a size of 0 bytes. It seems from the Storable code, in the _store routine, the filehandle is created and then $xsptr is called to write the data to the file. This means there is a small window where if the perl script exits, the file will be 0 bytes. It is possible that we can add some error checking at _retrieve so that a 0 byte file returns an error, but ideally we don't want a 0 byte file at all. Would a change to create a temporary file first and then move into place be acceptable? Ton