-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Do clearstatcache() on rmdir #21677
Do clearstatcache() on rmdir #21677
Conversation
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code makes sense 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you able to provide a test case and describe your setup? A search for rmdir(): No such file or directory at
shows only 3 open issues. I recall that stat and getMetaData called quite often during. Adding clearstatcache seems like a bad idea to me (but I have not done any profiling yet).
I haven found a way to reproduce it. I guess it's kind of a race condition of parallel operations when huge folders are deleted. |
|
/backport to stable19 |
I'm trying to fix a bunch of errors that look like: