From 906786c52526cca4e90aaaec0de7c389e890a387 Mon Sep 17 00:00:00 2001 From: Damon Barry Date: Mon, 3 Oct 2022 17:17:16 -0700 Subject: [PATCH] Update dependency to fix OOM bug (#6689) Fixes #6630. DotNetty has an OOM bug that is fixed in v0.7.5. Two components in Edge Hub have a transitive dependency on DotNetty: * Microsoft.Azure.Devices.Edge.Hub.Core via Microsoft.Azure.Devices.Client * Microsoft.Azure.Devices.Edge.Hub.Mqtt via Microsoft.Azure.Devices.ProtocolGateway.Core. The best approach is for our dependencies to update their reference to DotNetty, then we update our dependencies. In the meantime, we'll make explicit references to override the transitive versions. I used `dotnet list package --include-transitive` before and after the change to verify that the transitive dependency is replaced by the explicit dependency in the two updated projects, and that transitive packages are at 0.7.5 throughout the rest of Edge Hub. It would work to _only_ add explicit references in Microsoft.Azure.Devices.Edge.Hub.Core since Microsoft.Azure.Devices.Edge.Hub.Mqtt depends on Core but adding explicit references at the site of each dependency should help avoid surprises. Changes to Edge Hub connectivity can have far-reaching impacts, so I'm running end-to-end, nested end-to-end, connectivity, and long-haul pipelines to test this change. ## Azure IoT Edge PR checklist: --- .../Microsoft.Azure.Devices.Edge.Hub.Core.csproj | 13 +++++++++++++ .../Microsoft.Azure.Devices.Edge.Hub.Mqtt.csproj | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/edge-hub/core/src/Microsoft.Azure.Devices.Edge.Hub.Core/Microsoft.Azure.Devices.Edge.Hub.Core.csproj b/edge-hub/core/src/Microsoft.Azure.Devices.Edge.Hub.Core/Microsoft.Azure.Devices.Edge.Hub.Core.csproj index 8dde4921229..8eddaabd131 100644 --- a/edge-hub/core/src/Microsoft.Azure.Devices.Edge.Hub.Core/Microsoft.Azure.Devices.Edge.Hub.Core.csproj +++ b/edge-hub/core/src/Microsoft.Azure.Devices.Edge.Hub.Core/Microsoft.Azure.Devices.Edge.Hub.Core.csproj @@ -20,6 +20,19 @@ + + + + + + + + diff --git a/edge-hub/core/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/Microsoft.Azure.Devices.Edge.Hub.Mqtt.csproj b/edge-hub/core/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/Microsoft.Azure.Devices.Edge.Hub.Mqtt.csproj index 7ee29268bf5..5edde7c162d 100644 --- a/edge-hub/core/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/Microsoft.Azure.Devices.Edge.Hub.Mqtt.csproj +++ b/edge-hub/core/src/Microsoft.Azure.Devices.Edge.Hub.Mqtt/Microsoft.Azure.Devices.Edge.Hub.Mqtt.csproj @@ -11,6 +11,19 @@ + + + + + + + +