-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[BUG] Iterating over result of BlobServiceClient.listBlobContainers results in infinite loop #18881
Copy link
Copy link
Closed
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.StorageStorage Service (Queues, Blobs, Files)Storage Service (Queues, Blobs, Files)bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.dependency-issue-jacksonIssue caused by dependency version mismatch with one of the Jackson librariesIssue caused by dependency version mismatch with one of the Jackson librariesneeds-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK team
Metadata
Metadata
Assignees
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.StorageStorage Service (Queues, Blobs, Files)Storage Service (Queues, Blobs, Files)bugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.dependency-issue-jacksonIssue caused by dependency version mismatch with one of the Jackson librariesIssue caused by dependency version mismatch with one of the Jackson librariesneeds-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK team
Describe the bug
Calling
BlobServiceClient.listBlobContainersand iterating over the results endlessly loops over all containersTo Reproduce
BlobServiceClientlistBlobContainerson 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.0azure-storage-common:12.10.0azure-core:1.12.0Information 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