Azure / Azure/azure-rest-api-specs

Container Deletion returns immediately but the target container is not actually deleted at that time

Open
#30,456 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

customer-reported Mgmt question Service Attention Storage
Dominant language
TypeSpec
Stars
3.1k
Forks
6k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

https://github.com/Azure/azure-rest-api-specs/blob/b9e65c8997ce097af3f773a48d2ea2e0535f3cca/specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/blob.json#L363

Delete returns immediately but the container is still present and blocks re-use of the name when recreating:

unexpected status 409 (409 Conflict) with error: ContainerOperationFailure: The specified container is being deleted. Try operation later.

The delete response should be returned only when the deletion is complete, or be an LRO with a polling endpoint to be able to confirm the operation is completed successfully rather than requiring users to deal with retry logic on creation.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked specification/storage/resource-manager/Microsoft.Storage/stable/2023-01-01/blob.json at line 363 and inspect the container deletion response definition. Determine how the specification should represent completion or an LRO with polling, then confirm the result allows callers to know when the container can be recreated without handling deletion retries themselves.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, openapi
Domain
api, cloud
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.