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

PagedResult doesn't return full response #43723

Open
meshibiton opened this issue Jan 7, 2025 · 0 comments
Open

PagedResult doesn't return full response #43723

meshibiton opened this issue Jan 7, 2025 · 0 comments
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@meshibiton
Copy link

meshibiton commented Jan 7, 2025

Library name and version

azure-resourcemanager-network:2.38

Describe the bug

Hi,

I'm using azure sdk , and I have found out that few methods don't return the full response.

They returned only one resource group , for example using this ->

networkManager.localNetworkGateways.list().stream().collect(Collectors.toList());

(tried different approaches like block and etc) return only gws from one resource group
, but when I am going through all the resources groups I am getting the full response.

networkManager.resourceManager().resourceGroups().list().forEach(resourceGroup -> {
    List<LocalNetworkGateway> virtualNetworkGateways =
            networkManager.localNetworkGateways().listByResourceGroup(resourceGroup.name()).stream().collect(Collectors.toList());
    gws.addAll(virtualNetworkGateways);
});

same goes for

networkManager.virtualNetworkGateways()
I saw the code in the SDK(.list()) is going through all the resource groups so maybe there is a problem with the reactive code?

I am waiting for your response,

meshi

Expected behavior

return the full response

Actual behavior

partial response

Reproduction Steps

`networkManager.localNetworkGateways.list().stream().collect(Collectors.toList());

Environment

No response

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jan 7, 2025
@jsquire jsquire transferred this issue from Azure/azure-sdk-for-net Jan 7, 2025
@alzimmermsft alzimmermsft added the Mgmt This issue is related to a management-plane library. label Jan 7, 2025
@github-actions github-actions bot removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

2 participants