Closed rina23q closed 1 month ago
This issue is quite serious. Trying to reproduce the error, I ended in a state where the mapper fails to start, panicking at crates/core/tedge_api/src/store/pending_entity_store.rs:162:49
.
tedge mqtt pub -r 'te/device/child02//' '{"@type":"child-device"}'
is okay.tedge mqtt pub -r 'te/device/child02//' '{"@type":"child-device"}'
makes the mapper crazy, taking 100% cpu.tedge mqtt pub -r 'te/device/child02//' ''
.Note: for some unknown reason, there is no /etc/tedge/device/inventory.json
on my device.
@didier-wenzek Thanks for reproducing and creating a PR. The behaviour that you described is exactly what I found.
Note: for some unknown reason, there is no
/etc/tedge/device/inventory.json
on my device.
inventory.json
is not automatically created. Only when user wants to add fragments to c8y in a static way, the file is supposed to be created by user. Refer to this.
I am not able to reproduce the bug, so it is solved
Describe the bug c8y mapper panics with this error.
To Reproduce Run these commands in this order.
Expected behavior No panic. This scenario, changing
@type
should be treated as an error.Screenshots
Environment (please complete the following information):
Additional context