Skip Menu | will be shut down on March 1st, 2021.

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

Owner: Nobody in particular
Requestors: TONVOON [...]

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

Subject: Stored file of 0 bytes
Download (untitled) / with headers
text/plain 587b
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

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to