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

Check block existence with object operation #750

Merged
merged 4 commits into from
Nov 20, 2024

Conversation

pditommaso
Copy link
Collaborator

This PR change the logic for checking the existence of blob cache by using S3 operation instead of HTTP head method.

This is needed to prevent that the result of the HTTP HEAD check for a non-existing object retuning 404 (not found) is cached by the underlying caching rule as documented here.

The of S3 API should bypass the caching layer and therefore preventing this issue.

@pditommaso
Copy link
Collaborator Author

@munishchouhan can you give it a try at your convenience. Tagging @gavinelder for visibility.

Signed-off-by: Paolo Di Tommaso <[email protected]>
Signed-off-by: Paolo Di Tommaso <[email protected]>
@munishchouhan
Copy link
Member

@munishchouhan can you give it a try at your convenience. Tagging @gavinelder for visibility.

sure

@munishchouhan
Copy link
Member

Tested in Local, pods are resulting in Error, Digging further to find the cause

@munishchouhan
Copy link
Member

There is a problem with my colima setup using other option to test it

@munishchouhan
Copy link
Member

Tested locally
successfully with 10 parallel transfers:
Screenshot 2024-11-20 at 12 36 00

@munishchouhan
Copy link
Member

cache:
Screenshot 2024-11-20 at 12 37 26

@munishchouhan
Copy link
Member

tested blob exists:
Screenshot 2024-11-20 at 13 43 56

@pditommaso pditommaso merged commit 86ef526 into master Nov 20, 2024
3 checks passed
@pditommaso pditommaso deleted the check-object-with-object-operation branch November 20, 2024 15:53
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