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

AdapterFile: suppress warnings of removed file cache entries #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ddonatek
Copy link

@ddonatek ddonatek commented Jul 27, 2024

This can happen for example when multiple requests access the same expired cache entry.
One of them unlinks the file first and the other tries to remove nonexistent file and logs error.
And because of statcache, it doesn't even have to happen right after the is_file check.

I suppressed only the lines I found in the logs.


This change is Reviewable

Even though there are file existence checks, another request can remove
the file right afterwards. The code behaves correctly even if that happens,
this just prevents log pollution.
Copy link

sonarcloud bot commented Jul 27, 2024

@MichalSkoula
Copy link

This looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants