Skip to content

Commit

Permalink
Merge pull request #18741 from vbotbuildovich/backport-pr-18700-v23.3…
Browse files Browse the repository at this point in the history
….x-386

[v23.3.x] cloud_storage_clients: check for `BlobNotFound` in `abs_client::do_delete_path()`
  • Loading branch information
WillemKauf authored May 31, 2024
2 parents 5c40c67 + 5345c3a commit 6adc43d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/v/cloud_storage_clients/abs_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,9 @@ ss::future<> abs_client::do_delete_path(
try {
co_await do_delete_file(name, *iter, timeout);
} catch (const abs_rest_error_response& abs_error) {
if (abs_error.code() == abs_error_code::path_not_found) {
if (
abs_error.code() == abs_error_code::path_not_found
|| abs_error.code() == abs_error_code::blob_not_found) {
vlog(
abs_log.debug,
"Object to be deleted was not found in cloud storage: "
Expand Down
1 change: 0 additions & 1 deletion src/v/cloud_storage_clients/abs_error.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ std::istream& operator>>(std::istream& i, abs_error_code& code) {
.match("InternalError", abs_error_code::internal_error)
.match("OperationTimedOut", abs_error_code::operation_timed_out)
.match("SystemInUse", abs_error_code::system_in_use)
.match("BlobNotFound", abs_error_code::blob_not_found)
.match("AccountBeingCreated", abs_error_code::account_being_created)
.match(
"ResourceAlreadyExists", abs_error_code::resource_already_exists)
Expand Down

0 comments on commit 6adc43d

Please sign in to comment.