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

edgeHub v1.4.3: System.NotImplementedException: The method or operation is not implemented. #6912

Open
alaendle opened this issue Feb 14, 2023 · 1 comment

Comments

@alaendle
Copy link

public Task<ulong> GetCountFromOffset(byte[] offset) => throw new NotImplementedException();

In v1.4.3 edgeHub I've encountered the following call-stack (because of previous IO-errors the edgeHub switched from RocksDB to InMemory-store), nonetheless this should never result in a NotImplementedException.

My hope is that it is relatively easy to spot from the callstack how the "not implemented" part could be reached - and maybe how this could be implemented or avoided. Also as far as I can see the code hasn't changed much since v1.4.3 and I haven't found matching issues, so my guess is that this can also happen with the latest v1.4.8 (but to be honest I haven't verified that).

<6> 2023-02-11 17:35:01.974 +00:00 [INF] - Starting periodic operation Get EdgeHub config...
<6> 2023-02-11 17:35:02.312 +00:00 [INF] - Obtained edge hub config from module twin
<4> 2023-02-11 17:35:02.315 +00:00 [WRN] - Error getting edge hub configuration.
System.NotImplementedException: The method or operation is not implemented.
   at Microsoft.Azure.Devices.Edge.Storage.InMemoryDbStore.GetCountFromOffset(Byte[] offset) in /mnt/vss/_work/1/s/edge-util/src/Microsoft.Azure.Devices.Edge.Storage/InMemoryDbStore.cs:line 125
   at Microsoft.Azure.Devices.Edge.Hub.Core.Storage.MessageStore.GetMessageCountFromOffset(String endpointId, Int64 offset) in /mnt/vss/_work/1/s/edge-hub/core/src/Microsoft.Azure.Devices.Edge.Hub.Core/storage/MessageStore.cs:line 141
   at Microsoft.Azure.Devices.Routing.Core.Endpoints.StoringAsyncEndpointExecutor.UpdatePriorities(IList`1 priorities, Option`1 newEndpoint) in /mnt/vss/_work/1/s/edge-hub/core/src/Microsoft.Azure.Devices.Routing.Core/endpoints/StoringAsyncEndpointExecutor.cs:line 174
   at Microsoft.Azure.Devices.Routing.Core.Endpoints.StoringAsyncEndpointExecutorFactory.CreateAsync(Endpoint endpoint, IList`1 priorities, ICheckpointerFactory checkpointerFactory, EndpointExecutorConfig endpointExecutorConfig) in /mnt/vss/_work/1/s/edge-hub/core/src/Microsoft.Azure.Devices.Routing.Core/endpoints/StoringAsyncEndpointExecutorFactory.cs:line 35
   at Microsoft.Azure.Devices.Routing.Core.Dispatcher.SetEndpointInternal(Endpoint endpoint, IList`1 priorities) in /mnt/vss/_work/1/s/edge-hub/core/src/Microsoft.Azure.Devices.Routing.Core/Dispatcher.cs:line 237
   at Microsoft.Azure.Devices.Routing.Core.Dispatcher.ReplaceEndpoints(IDictionary`2 endpointsWithPriorities) in /mnt/vss/_work/1/s/edge-hub/core/src/Microsoft.Azure.Devices.Routing.Core/Dispatcher.cs:line 164
   at Microsoft.Azure.Devices.Routing.Core.Router.ReplaceRoutes(ISet`1 newRoutes) in /mnt/vss/_work/1/s/edge-hub/core/src/Microsoft.Azure.Devices.Routing.Core/Router.cs:line 165
   at Microsoft.Azure.Devices.Edge.Hub.Core.Config.ConfigUpdater.UpdateRoutes(IReadOnlyDictionary`2 routes, Boolean replaceExisting) in /mnt/vss/_work/1/s/edge-hub/core/src/Microsoft.Azure.Devices.Edge.Hub.Core/config/ConfigUpdater.cs:line 149
   at Microsoft.Azure.Devices.Edge.Hub.Core.Config.ConfigUpdater.<UpdateConfig>b__11_0(EdgeHubConfig ehc) in /mnt/vss/_work/1/s/edge-hub/core/src/Microsoft.Azure.Devices.Edge.Hub.Core/config/ConfigUpdater.cs:line 124
   at Microsoft.Azure.Devices.Edge.Hub.Core.Config.ConfigUpdater.UpdateConfig(Option`1 edgeHubConfig) in /mnt/vss/_work/1/s/edge-hub/core/src/Microsoft.Azure.Devices.Edge.Hub.Core/config/ConfigUpdater.cs:line 126
   at Microsoft.Azure.Devices.Edge.Hub.Core.Config.ConfigUpdater.PullConfig(Func`2 configGetter) in /mnt/vss/_work/1/s/edge-hub/core/src/Microsoft.Azure.Devices.Edge.Hub.Core/config/ConfigUpdater.cs:line 107
<6> 2023-02-11 17:35:02.316 +00:00 [INF] - Successfully completed periodic operation Get EdgeHub config
<6> 2023-02-11 17:35:02.697 +00:00 [INF] - Updated reported properties for szh2vm0020/$edgeHub

The logs before and after this section have different timestamps - so this seems to be the complete log-section that this behavior exposes.

@github-actions
Copy link

This issue is being marked as stale because it has been open for 30 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants