8000 Storage.delete returns false on NotFound, BatchRequest.delete shows failure · Issue #372 · googleapis/google-cloud-java · GitHub
[go: up one dir, main page]

Skip to content

Storage.delete returns false on NotFound, BatchRequest.delete shows failure #372

@mziccard

Description

@mziccard

If we try to delete a non-existing blob storage.delete(nonExistingBlob) returns false.
If we try to delete a non-existing blob with a batch request:

BatchRequest batchRequest = BatchRequest.builder()
    .delete(nonExistingBlob)
    .build();
...
batchResponse.deletes().get(0).failed(); // This is true

The deletion of a non-existing-blob is considered a failure in BatchResponse.
Wouldn't it be better to make this two ways of deleting a blob exhibit the same behavior?

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0