Issue #15026 has been updated by James Turnbull. Status changed from Unreviewed to Rejected
The issue here is file-bucketing I suspect. Puppet is trying to backup the file before deleting it. I'm rejecting the ticket as the work-around specified is acceptable. ---------------------------------------- Bug #15026: Puppet has problems deleting large files https://projects.puppetlabs.com/issues/15026#change-68838 Author: Alex Jurkiewicz Status: Rejected Priority: Normal Assignee: Category: file Target version: Affected Puppet version: 2.7.1 Keywords: Branch: I have this snippet in our Puppet code: <pre> file { '/var/lib/mlocate/mlocate.db': ensure => absent } </pre> When mlocate.db is very large, Puppet uses a lot of memory deleting the file, and if the file is too large it crashes. <pre> 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". </pre> 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.
