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
[DataStorage] Runtime error #231
Comments
@suresh-lc PTAL. Thank you in advance. |
Hi Sunchit, I've figured out why it crashed. It's a bug, and it's not so hard to fix. The AutoEvent Manager isn't initialized when the Service is stopped by the dependency time out (EdgeX Core Data and Core Metadata). In this line, https://github.com/edgexfoundry/device-sdk-go/blob/v1.4.0/pkg/service/service.go#L134 We should check whether the AutoEvent Manager is nil before calling StopAutoEvents. We have resolved this issue in V2 (Ireland). Hi Jim and Iain, May we create a hanoi branch to fix this issue and tag 1.4.1 for them? |
@suresh-lc Who wrote this email? |
Cloud Tsai from EdgeX- Device Service team |
This issue will be resolved by using the edgexfoundry 'Ireland' version, but it has not been officially released. |
Post communication with EdgeX members, they have provided us with a fork : github.com/hahattan/device-sdk-go v1.4.1 with the fix on the Hanoi branch, causing this crash. I had been testing the fix by using the replace directive in our go.mod. That seems to work well. As you have mentioned, we can wait till the Ireland release or we can also clone the fix to our repo till the time EdgeX releases Ireland. Please share your thoughts on the same ? Thanks ! |
@sun-sharma Thank you for letting us know. |
Describe the bug
A runtime error when edgex foundry servers are not running,
To Reproduce
Expected behavior
Check the edgex foundry server in advance before starting Data Storage.
Test environment configuration (please complete the following information):
The text was updated successfully, but these errors were encountered: