-
Notifications
You must be signed in to change notification settings - Fork 2.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
.*: Verify if deletion marker file exists before using it. #2369
Conversation
This fixes problem with Get method reporting missing file as failures (via metrics). Signed-off-by: Peter Štibraný <[email protected]>
Signed-off-by: Peter Štibraný <[email protected]>
// BucketReader.Get reports missing file as a failure (via metrics), | ||
// but since most blocks don't have this marker file, it skews metrics unnecessarily. | ||
// By using exists first, we avoid that. | ||
exists, err := bkt.Exists(ctx, deletionMarkFile) |
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.
I'm dubious about having to do another API call just to check if the object exists, when we can get the same information from Get()
. I personally believe #2365 works better (my take here).
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.
ack
See discussion here: #2365 and on slack https://cloud-native.slack.com/archives/CL25937SP/p1585903230146500 |
Alternative we agrred offline for: #2370 Let me know if that's make sense 🤗 |
Fix merged #2383 |
Thanks for help on this ❤️ |
This is an alternative to #2365. Please see the problem description there. This PR modifies
ReadDeletionMark
function to useExists
call before reading deletion marker file. This helps to keepthanos_objstore_bucket_operation_failures_total
down, since missing deletion marker file is not really a failure.