Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix race condition in which files were removed during a file.directory #36928

Merged
merged 1 commit into from
Oct 12, 2016

Conversation

terminalmage
Copy link
Contributor

@terminalmage terminalmage commented Oct 11, 2016

This resolves a case in which a directory being managed by a
file.directory state was running a sphinx build, and temporary
files/dirs created by the build were present when the initial walk was
performed but were cleaned up by the time the state got around to
enforcing permissions.

Resolves #36831.

This resolves a case in which a directory being managed by a
file.directory state was running a sphinx build, and temporary
files/dirs created by the build were present when the initial walk was
performed but were cleaned up by the time the state got around to
enforcing permissions.
@terminalmage
Copy link
Contributor Author

This may still require some testing, I wasn't able to properly test the race condition so I think I'll need to test this by inserting bogus file/directory names into the walk results so that I can force the state to try to check their perms.

@terminalmage
Copy link
Contributor Author

This would also be a good candidate for an automated test.

@rallytime rallytime added the Needs-Testcase PR needs test cases written, or the issue is about a bug/feature that needs test cases label Oct 11, 2016
@terminalmage
Copy link
Contributor Author

OK I tested by injecting a bogus file into the walk results, and was able to trigger the traceback without the fix, and show that the error no longer occurs when the fix is applied. This should be good to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Testcase PR needs test cases written, or the issue is about a bug/feature that needs test cases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants