-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[BUG] Iterating over result of BlobServiceClient.listBlobContainers results in infinite loop #18881
Comments
Hi @rickle-msft , #9465 looks like our bug indeed. I know we have jackson in our classpath. I will investigate and see if the mentioned workarounds work for us. |
@rickle-msft #9465 looks like our bug, but the workarounds don't work for us. The problem starts when you have a more recent version of jackson in the classpath than the one that the azure java sdk uses by default. I.e., by default the azure sdk uses version '2.11.3'. In our project we need a more recent version. At the time of writing, the most recent version of jackson is "2.12.1". If we use that version, you get the infinite loop. I've attached a sample gradle project with unit tests that you can open in typical IDE's, so you can see what I did to reproduce this : azure-bug-reproduction.zip This project allows you to switch between jackson version 2.11.3 and 2.12.1 by adjusting the This also contains unit tests for another problem I encountered: |
This issue will be resolved once the 12.11.0-beta.2 azure-storage-blob library is released |
Hi @willemv, we recently released azure-storage-blob 12.11.0-beta.2 that should fix this issue. Please try it out and let us know if you are still hitting the issue. Feel free to close this once you've confirmed the latest release fixes your issue. |
The issue is fixed in 12.11.0-beta.2 and later, thanks |
Describe the bug
Calling
BlobServiceClient.listBlobContainers
and iterating over the results endlessly loops over all containersTo Reproduce
BlobServiceClient
listBlobContainers
on the client, and iterate over the resultCode Snippet
Using
stream()
Using the for-each construct:
Using the paged functionality:
Expected behavior
The name of each available share is printed once
Actual result: this keeps printing the same share names over and over, without ever stopping.
Setup (please complete the following information):
azure-storage-blob
:12.10.0
azure-storage-common
:12.10.0
azure-core
:1.12.0
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: