You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
r10k rewrites one file: .r10k-deploy.json. This process is not done atomically by open(O_TRUNC), write, close. This means that the file is empty for some time and the empty string is no valid JSON.
We have a failure rate of about one in 1000 Puppet runs, where the config_version script is unable to determine the version as the file is empty at this time.
Please write this file to a temporary location and replace the old one atomically.
The text was updated successfully, but these errors were encountered:
This isn't quite atomic, but it's really close. And AFAIK, it's as close
as we can get to atomic in pure Ruby since `flock` is advisory.
Fixespuppetlabs#813
r10k rewrites one file: .r10k-deploy.json. This process is not done atomically by open(O_TRUNC), write, close. This means that the file is empty for some time and the empty string is no valid JSON.
We have a failure rate of about one in 1000 Puppet runs, where the config_version script is unable to determine the version as the file is empty at this time.
Please write this file to a temporary location and replace the old one atomically.
The text was updated successfully, but these errors were encountered: