Azure / azure-sdk-for-java

This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
MIT License
2.36k stars 2k forks source link

[BUG] Azure Java SDK timeout requesting target resources #36808

Open waynewang1989 opened 1 year ago

waynewang1989 commented 1 year ago

Describe the bug Azure Java SDK timeout requesting target resources. Affected API calls:

  1. networkInterfaces.listByResourceGroupAsync

networkInterfaces.listByResourceGroupAsync(resourceGroupName); did not finish in 10 minutes Started at: Sep 13, 2023 @ 04:31:01.173

Sep 13, 2023 @ 04:41:01.1042023-09-13T04:41:01.104Z [trace_id=88c824331585d7ab58eebae3480e67b4] [transaction_id=da9357b3a571afd8] INFO [Thread-2080 ] c.a.r.n.i.N.listByResourceGroup.performLogging:359 - {'az.sdk.message':'HTTP request','method':'GET','url':'https://management.azure.com/subscriptions/**/resourceGroups/**/providers/Microsoft.Network/networkInterfaces?api-version=2022-11-01','tryCount':'1','contentLength':0}

  1. networkInterfaces.listByResourceGroupAsync INFO [Thread-2045 ] c.a.r.n.i.N.listByResourceGroup.performLogging:359 - {"az.sdk.message":"HTTP request","method":"GET","url":https://management.azure.com/subscriptions/******/resourceGroups/******/providers/Microsoft.Network/networkInterfaces?api-version=2022-11-01,"tryCount":"1","contentLength":0}

Exception or Stack Trace No response returned from Azure SDK, Causing the service call timeout

To Reproduce We use a syinced call with networkInterfaces.listByResourceGroupAsync().block()

Code Snippet this.networkInterfaces.listByResourceGroupAsync(resourceGroupName);

Expected behavior API do return the expected value or thrown error on error. Any response instead of not responding is required.

Screenshots NA

Setup (please complete the following information):

Additional context NA

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

joshfree commented 1 year ago

@weidongxu-microsoft PTAL

XiaofeiCao commented 1 year ago

Thanks @waynewang1989 , may I have the error stack trace please?

waynewang1989 commented 1 year ago

@XiaofeiCao There is no stack trace. We just see no response nor errors from the place we call the stack. However, we could see that the netty client is performing the request.

2023-09-13T01:29:41.002Z INFO [Thread-2045 ] c.a.r.n.i.N.listByResourceGroup.performLogging:359 - {"az.sdk.message":"HTTP request","method":"GET","url":https://management.azure.com/subscriptions/bfd75b0b-ffce-4cf4-b46b-ecf18410c410/resourceGroups/vmw-hcs-650100a0ee3abc7ea021b7fe-6501037aee3abc7ea021b844/providers/Microsoft.Network/networkInterfaces?api-version=2022-11-01,"tryCount":"1","contentLength":0}

This is the response from Azure service team and this request seems not received by the service.

Quote: Based on below timestamp and request URI, I did not find HTTP incoming request on current subscription.

https://management.azure.com/subscriptions/bfd75b0b-ffce-4cf4-b46b-ecf18410c410/resourceGroups/vmw-hcs-650100a0ee3abc7ea021b7fe-6501037aee3abc7ea021b844/providers/Microsoft.Network/networkInterfaces?api-version=2022-11-01 from Sep 13, 2023 @ 01:29:40.758 to Sep 13, 2023 @ 01:39:40.760 (UTC).