Issue #15026 has been reported by Alex Jurkiewicz.
----------------------------------------
Bug #15026: Puppet has problems deleting large files
https://projects.puppetlabs.com/issues/15026
Author: Alex Jurkiewicz
Status: Unreviewed
Priority: Normal
Assignee:
Category: file
Target version:
Affected Puppet version: 2.7.1
Keywords:
Branch:
I have this snippet in our Puppet code:
file { '/var/lib/mlocate/mlocate.db': ensure => absent }
When mlocate.db is very large, Puppet uses a lot of memory deleting the file,
and if the file is too large it crashes.
Test system:
# free -mt
total used free shared buffers cached
Mem: 3961 739 3221 0 6 45
-/+ buffers/cache: 687 3274
Swap: 1906 0 1906
Total: 5868 739 5128
Results (dd if=/dev/zero bs=1024K > mlocate.db)
100mb: works fine
3000mb: hits vsz 3150 rsz 3000mb, successfully deletes the file but all exec &
service definitions fail with "Cannot allocate memory - fork(2)"
9000mb: unknown memory usage (didn't check), fails to delete the file with
error "err: /Stage[main]/Soe/File[/var/lib/mlocate/mlocate.db]: Could not
evaluate: Puppet::Util::Log requires a message". All other Puppet code works
fine.
Then I added backup => false to the file definition and all the problems went
away! It could delete 9gb file just fine.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.