Skip to content

[BlobStorage] Unsafe retry on 500 OperationTimedOut error #39615

Open
@annatisch

Description

@annatisch
  • Package Name: azure-storage-blob (and probably other storage packages)
  • Package Version: latest
  • Operating System: Any
  • Python Version: Any

Describe the bug
The Python SDK will retry a 500 status with error code OperationTimedOut.
https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/storage/azure-storage-blob/azure/storage/blob/_shared/policies.py#L87-L93

According to the REST API docs, this retry is unsafe:
https://learn.microsoft.com/en-us/rest/api/storageservices/common-rest-api-error-codes

This issue can result in data corruption:
Azure/azure-sdk-for-go#24027

Metadata

Metadata

Assignees

No one assigned

    Labels

    ClientThis issue points to a problem in the data-plane of the library.Service AttentionWorkflow: This issue is responsible by Azure service team.StorageStorage Service (Queues, Blobs, Files)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions