deregistering an entity does not clear all related retained MQTT messages #3492
Labels
bug
Something isn't working
theme:entity_store
Entity store related functionality
theme:mqtt
Theme: mqtt and mosquitto related topics
Describe the bug
De-registering a child device via the entity store HTTP API does not clean up all of the related MQTT topics, for example, below shows that the name and type digital twin properties are still present:
The bug was found whilst trying to refactor the
tests/RobotFramework/tests/cumulocity/registration/registration_lifecycle.robot
test to use the deregistration API instead of manually clearing MQTT messages.To Reproduce
Register a child device
Register a service of the child device
De-register the service via the HTTP API
Expected behavior
After a service is deregistered (~1-2 seconds after), then all MQTT messages related to that service should no longer be stored as retained messages on the broker.
tedge mqtt sub 'te/device/child01/service/custom-app/#'
Screenshots
Environment (please complete the following information):
Debian GNU/Linux 12 (bookworm)
unknown
Linux b4c8b1418fda 6.8.0-39-generic #39-Ubuntu SMP PREEMPT_DYNAMIC Sat Jul 6 02:50:39 UTC 2024 aarch64 GNU/Linux
tedge 1.4.3~316+gaa844f8
Additional context
The text was updated successfully, but these errors were encountered: