-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Does Azure Storage's strong consistency extend to listing operations? #105331
Comments
@teo-tsirpanis |
@teo-tsirpanis Alternatively, you can use the BlobRequestOptions class to set the MaximumExecutionTime property to a value that is appropriate for your application. This property specifies the maximum amount of time that the client will wait for a response from the server. If the response is not received within the specified time, the client will throw an exception. This can be useful in ensuring that your application does not wait indefinitely for a response from the server. In summary, Azure Storage provides strong consistency guarantees for read operations, including listing operations, but there may be a small delay between the time a write operation is completed and the time it becomes visible in a listing operation. To ensure immediate visibility, you can use the GetBlobReference or GetContainerReference method to retrieve the blob or container and then check its properties, or you can use the BlobRequestOptions class to set the MaximumExecutionTime property. If there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation. |
Thanks for the timely response @SaibabaBalapur-MSFT.
Aren't these two phrases contradictory? Isn't the consistency model for listing operations eventual instead of strong? |
@teo-tsirpanis I'd recommend working leverage our Q&A forum by posting your issue there so our community, and MVPs can further assist you in troubleshooting this issue or finding potential workarounds.[Teams Q&A forum] (https://docs.microsoft.com/en-us/answers/topics/46488/office-teams-windows-itpro.html) . |
I understand, thanks @SaibabaBalapur-MSFT. Can you update the documentation to mention eventual consistency for listing operations? |
@teo-tsirpanis @pauljewellmsft |
Thanks so much for this feedback. I confirmed with the engineering team that the List Blobs operation follows a strong consistency model. The doc has been updated to clarify that read and list operations are strongly consistent. Doc changes should go live later today. Thanks again for contributing! #please-close |
Our code uses Azure Storage and requires blob/container creations/deletions to be immediately visible in listing operations. Currently we make sure of that by looping until the blob/container's properties can be retrieved. Do we actually need to do that or is it covered under Azure Storage's strong consistency guarantees?
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: