Hello Markus,

This looks like RT ticket 101800. https://rt.cpan.org/Public/Bug/Display.html?id=101800

I submitted a patch to implement the canary approach in that ticket, but it has not yet had a response.

It could do with some review, so maybe try that patch with your system and advise if it works or any modifications?

Regards,
Shawn.


On 13/05/2015 1:32, Markus Jansen wrote:

Hi,

on Linux, very often tmpwatch(8) is employed to clean /tmp and /var/tmp periodically (on other systems, e.g. on Solaris 10,

this is not the default) via cron.daily. Whether atime, mtime, or ctime, or a combination of these stamps are used, is a matter of the local configuration.

Unfortunately, this results not in the removal of complete PAR deployment trees in one of these directories, but to single files.

As PAR restitutes the correct mtime after unpacking for most files, functionality may “slowly deteriorate”, worst case depending

on the mtime during packing the PAR executable.

While long-term servers could apply quite some countermeasures (such as using a different location, or periodically “refreshing” their PAR cache),

I fail to see an easy solution for “ordinary” client programs other than setting PAR_CLEAN, thereby slowing startup down.

IMHO the cleanest solution would be to provide tmpwatch with a sort of “wipe all or nothing of a tree” marks.

A possible PAR approach would be to unpack all files without setting the mtime, except for a special “canary bird” file, which would be artificially aged

by a little more than a day. Removing the “canary bird” would then invalidate the cache.

Any opinions are highly appreciated.

Best regards,

Markus

Ericsson <http://www.ericsson.com/>

*MARKUS JANSEN Dipl.-Ing.*
Aachen Engineering Hub ClearCase/Git Expert
ITTE Hub Services / CM Automation Components
EDD/IFT/E


*Ericsson*
Ericsson Allee 1
52134, Herzogenrath, Germany
Phone +49 2407 575 5157
Mobile +49 172 2742003
Exchange +49 2407 575 0
Fax +49 2407 575 14721
markus.jan...@ericsson.com
www.ericsson.com

Legal entity: Ericsson GmbH, registered office in Düsseldorf, Germany, Trade Register: Amtsgericht Düsseldorf (HRB 33012). Managing Directors: Stefan Koetz (Chairman), Cecilia Wachtmeister, Bernd Mellinghaus. Supervisory Board: Valter D'Avino (Chairman). This Communication is Confidential. We only send and receive email on the basis of the terms set out at www.ericsson.com/email_disclaimer <http://www.ericsson.com/email_disclaimer>


--
Assoc Prof Shawn Laffan
  School of Biological, Earth and Environmental Sciences
  UNSW, Sydney 2052, Australia
  Tel +61 2 9385 8093
  http://www.bees.unsw.edu.au/staff/shawn-laffan
  http://www.purl.org/biodiverse (free diversity analysis software)
  http://www.tandf.co.uk/journals/ijgis

  UNSW CRICOS Provider Code 00098G

Reply via email to