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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain
Charset: utf8
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 587
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 Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.