-
Notifications
You must be signed in to change notification settings - Fork 464
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
Unexpected ObjectDisposedException when IoT Hub is throttling #6042
Comments
@danigian - this seems like an issue with the C# SDK than with IoT Edge. Do you get the same error if you connect to IoT Hub instead of the IoT Edge gateway (by not adding the GatewayHostName to the connection string)? @drwill-ms @azabbasi as fyi |
I agree this likely belongs over in https://github.com/Azure/azure-iot-sdk-csharp/issues instead. I can't initiate a transfer though. Can you @varunpuranik? I'm not sure what is being disposed here. None of the sample code has a call to Dispose nor any Indeed, this call stack doesn't show that we even got to the "get twin" stage; it is just trying to connect. |
Yeah, I am not able to transfer it to the azure-iot-sdk-csharp repo either. @danigian - can you please open the issue in the csharp SDK repo and close this one? Thanks! |
@varunpuranik @drwill-ms I previously did the test with C# SDK 1.39.0, but I have done it again now with 1.40.0. As additional input, I am using CloudAndScope Authentication mode in edgeHub and devices are not children of any edge device in my IoT Hub |
@danigian - Thanks for the additional information - in that case it seems like something in EdgeHub's behavior is causing the SDK instance to go into a bad state. |
@varunpuranik, thanks for your availability in trying to reproduce the issue. |
Assigning issue to @varunpuranik to follow up. |
@varunpuranik any update on this? |
This issue is being marked as stale because it has been open for 30 days with no activity. |
I was able to reproduce the issue, it is the authentication which causes it because the devices are not in scope for edge device and it uses CloudAndScope. Because the authentication takes longer, the SDK doesn't handle it properly and I would recommend to open an issue with them. |
Hi @ancaantochi, thanks for your explanation. |
Thanks @drwill-ms. @danigian closing this issue here to continue the investigation via the C# repo |
Expected vs current behavior
Assuming a IoT Hub with 100 devices, one edge gateway and one module with the following code
I would expect that, for a S1 IoT Hub, the first time I am awaiting the last "tasks", I should be throttled by the amount of registry operations allowed in one single minute.
Therefore I would either expect something to be thrown concerning the Throttling or, given the OperationTimeout set to 3 seconds for AMQP transport setting, a TimeoutException.
Instead, what really happens is that a ObjectDisposedException is thrown. See details below
Exception stacktrace
Context (Environment)
support_bundle.zip file here
The text was updated successfully, but these errors were encountered: