azqueue Create() behavior does not match the method's documentation #20683
Labels
AzQueue
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Storage
Storage Service (Queues, Blobs, Files)
Bug Report
The documentation for (q *QueueClient) Create() states
If a queue with the same name already exists, the operation fails.
. However, if a queue with the same name already exists it does not fail or return any error.When creating a new queue, azure API returns 201 after creating it, but if it already exists it returns 204. I was expecting the method's documentation to be more clear about not returning an error or return 409 QueueAlreadyExists.
To reproduce:
The text was updated successfully, but these errors were encountered: