Docs: batch limit of azure.storage.blob.ContainerClient.delete_blobs()
is poorly documented
#22821
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
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.
Docs
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
Storage
Storage Service (Queues, Blobs, Files)
I wanted to move an entire "folder" within a storage account and for unrelated reasons I had to use this python sdk for that. I did this in basically a 3-step action:
azure.storage.blob.ContainerClient.delete_blobs()
so I didn't have to individually delete each blob one by one.Or so I thought ... the batch failed with a
PartialBatchErrorException
and when I analyzed the parts, I noticed that a request failed with error codeExceedsMaxBatchRequestCount
. The thing is: this "max batch request count" was nowhere to be found - neither in the code documentation, nor anywhere on the azure limits documentation page. The only thing I found was this test case from the .NET SDK:https://github.com/Azure/azure-sdk-for-net/blob/402b7b71c310bbe0cb1c49862ba33c19a026f97d/sdk/storage/Azure.Storage.Blobs.Batch/tests/BlobBatchClientTests.cs#L64-L70
The
257
there seemed a bit suspicious so I experimented a bit with chunking and indeed 256 seems to be the maximum number of blobs that can be passed todelete_blobs()
. However, 256 as a number is nowhere to be found in the storage section of the python sdk. Why did it have to be so difficult to find anything about this limit?Once you decide if and where this should be documented, I'd of course offer my help in contributing this documentation.
The text was updated successfully, but these errors were encountered: