Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Storage] Modified StorageRetryPolicy to skip AzureSigningError from bad storage account key #36431

Merged

Conversation

weirongw23-msft
Copy link
Member

When the given storage account key credential is malformed, the existing StorageRetryPolicy retries many times and presents a long timeout before the user is presented with AzureSigningError. The policy has been modified to skip retries and immediately fail. Attached code changes, tests, and recordings, which all pass locally:
Screenshot 2024-07-11 at 01 09 30
Screenshot 2024-07-11 at 01 09 17

At the moment, there isn't an existing mechanism to limit the time of an API call, so using time library to time such requests is one possible way to measure the runtime of retry policy. A buggy implementation may potentially cause CI to run longer than expected, but will fail the tests here.

This change is to fix this Github Issue: #36379

@github-actions github-actions bot added the Storage Storage Service (Queues, Blobs, Files) label Jul 11, 2024
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@weirongw23-msft weirongw23-msft changed the title [Storage] [Blob] Modified StorageRetryPolicy to skip AzureSigningError from bad storage account key [Storage] Modified StorageRetryPolicy to skip AzureSigningError from bad storage account key Jul 20, 2024
@jalauzon-msft jalauzon-msft linked an issue Jul 25, 2024 that may be closed by this pull request
@weirongw23-msft weirongw23-msft merged commit 14fe734 into Azure:main Jul 25, 2024
22 checks passed
@weirongw23-msft weirongw23-msft deleted the weirongw23/incorrect-padding-retry branch July 25, 2024 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Incorrect padding" while attempting to check if blob exists
3 participants