use removeObjectIfExists instead removeObject, it is retryable #71529
Merged
use removeObjectIfExists instead removeObject, it is retryable #71529
Conversation
Contributor
|
This is an automated comment for commit 40c4183 with description of existing statuses. It's updated for the latest CI running ✅ Click here to open a full report in a separate page Successful checks
|
divanik
reviewed
Nov 7, 2024
Comment on lines
+45
to
+47
| void removeObject(const StoredObject & object); | ||
|
|
||
| void removeObjects(const StoredObjects & objects) override; | ||
| void removeObjects(const StoredObjects & objects); |
Member
There was a problem hiding this comment.
Also add const or //NOLIT to definition to suppress clang-tidy
divanik
reviewed
Nov 7, 2024
Comment on lines
+81
to
+83
| void removeObject(const StoredObject & object); | ||
|
|
||
| void removeObjects(const StoredObjects & objects) override; | ||
| void removeObjects(const StoredObjects & objects); |
divanik
reviewed
Nov 7, 2024
divanik
approved these changes
Nov 13, 2024
tavplubix
reviewed
Dec 9, 2024
Comment on lines
163
to
+168
| /// Remove object. Throws exception if object doesn't exists. | ||
| virtual void removeObject(const StoredObject & object) = 0; | ||
| // virtual void removeObject(const StoredObject & object) = 0; | ||
|
|
||
| /// Remove multiple objects. Some object storages can do batch remove in a more | ||
| /// optimal way. | ||
| virtual void removeObjects(const StoredObjects & objects) = 0; | ||
| // virtual void removeObjects(const StoredObjects & objects) = 0; |
Member
Author
There was a problem hiding this comment.
Will create new PR for it
This was referenced Dec 9, 2024
Closed
Merged
Merged
This was referenced Dec 10, 2024
Closed
Merged
CheSema
added a commit
that referenced
this pull request
Dec 12, 2024
Cherry pick #71529 to 24.10: use removeObjectIfExists instead removeObject, it is retryable
CheSema
added a commit
that referenced
this pull request
Dec 12, 2024
Cherry pick #71529 to 24.9: use removeObjectIfExists instead removeObject, it is retryable
CheSema
added a commit
that referenced
this pull request
Dec 12, 2024
Cherry pick #71529 to 24.8: use removeObjectIfExists instead removeObject, it is retryable
robot-ch-test-poll1
added a commit
that referenced
this pull request
Dec 12, 2024
Backport #71529 to 24.10: use removeObjectIfExists instead removeObject, it is retryable
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
The methods
removeObjectandremoveObjectsare not idempotent. When retries happen due to network errors, the result could beobject not foundbecause it has been deleted at previous attempts.Documentation entry for user-facing changes
CI Settings (Only check the boxes if you know what you are doing):