Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Release notes
[rn:skip]
What does this PR do?
Pins the
fileutils
to 1.7+ version to apply the file removal logic updates.Refer to the issue Logstash is facing:
FileUtils.rm_r
with secure option throwsErrno::ENOTEMPTY
ruby/fileutils#111Why is it important/What is the impact to the user?
The users who are on Windows OS and using
aws-integration
plugin S3 output feature, are having an issue that many temporary files are left that fileutil couldn't remove. With this change, temp dirs will be removed properly.Checklist
I have made corresponding changes to the documentationI have made corresponding change to the default configuration files (and/or docker env variables)I have added tests that prove my fix is effective or that my feature worksAuthor's Checklist
How to test this PR locally
Testing this behavior is very hard. In order to reproduce, as I remember, I did run for 2-3 days to get following exception (see the details):
Exhaustive pipeline status: https://buildkite.com/elastic/logstash-exhaustive-tests-pipeline/builds/546
To locally test:
rake artifact:all
) and copied generated artifact to Windows host.Note that, I have been running for over 2-days so far didn't face the issue.
Related issues
Use cases
aws-integration
plugin with s3-output in use, on Windows OS, has especially file scanning tools like antivirusScreenshots
Logs