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

registration message order #3439

Open
reubenmiller opened this issue Feb 27, 2025 · 0 comments
Open

registration message order #3439

reubenmiller opened this issue Feb 27, 2025 · 0 comments
Labels
improvement User value

Comments

@reubenmiller
Copy link
Contributor

reubenmiller commented Feb 27, 2025

Is your feature improvement request related to a problem? Please describe.

Registering child devices and services is often done asynchronously with all of the other messages. This can cause problems when sending the registration messages to Cumulocity as some of the telemetry data messages can be received before the registration messages which causes the cloud entity to be registered with default info (e.g. name and type) or some of the messages being silently ignored by the cloud as the device is not registered prior to receiving the message.

Describe the solution you'd like

A review needs to be done on how exactly to solve this problem reliably, but below is the order of messages that needs to be sent to Cumulocity, and there should be a brief delay (~N seconds) before any follow up messages are sent.

  1. Main device (101)
  2. device registration (e.g. 101)
  3. Service registration (102)
  4. Telemetry data or service status

Describe alternatives you've considered

Additional context

It should be noted the registration problem is mostly related to child entities (child devices and services) as the main device is registered via tedge connect c8y. This means that the main device already exists in the platform prior to the mapper being started for the first time.

System Test failures

The following flaky system test tickets are open where the suspected root cause is due to the ordering of registration messages:

@reubenmiller reubenmiller added the improvement User value label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement User value
Projects
None yet
Development

No branches or pull requests

1 participant