Commit fc55583
committed
fix(dup): fix possible crash on interface-specific volatile triggers
previously, when
1. installing a volatile trigger for a specific interface
2. the interface results in a cache miss but is valid for the device
the volatile trigger would be installed but the device status would not
be updated.
this results in a crash when the trigger generated events, as the logic
expects the interfaces to be in the data updater state.
by just loading the interfaces normally, we avoid this possible crash
Signed-off-by: Francesco Noacco <francesco.noacco@secomind.com>1 parent b15b5bb commit fc55583
4 files changed
Lines changed: 80 additions & 38 deletions
File tree
- apps/astarte_data_updater_plant
- lib/astarte_data_updater_plant/data_updater/core
- test/astarte_data_updater_plant
- data_updater
- core
Lines changed: 30 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
376 | 375 | | |
377 | 376 | | |
378 | 377 | | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | 378 | | |
395 | 379 | | |
396 | 380 | | |
397 | 381 | | |
398 | 382 | | |
399 | 383 | | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
404 | 388 | | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | 389 | | |
412 | 390 | | |
413 | 391 | | |
| |||
419 | 397 | | |
420 | 398 | | |
421 | 399 | | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
422 | 426 | | |
423 | 427 | | |
424 | 428 | | |
| |||
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
72 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
79 | | - | |
80 | | - | |
| 85 | + | |
| 86 | + | |
81 | 87 | | |
82 | | - | |
| 88 | + | |
83 | 89 | | |
84 | 90 | | |
85 | 91 | | |
| |||
Lines changed: 40 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
949 | 949 | | |
950 | 950 | | |
951 | 951 | | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
952 | 969 | | |
953 | 970 | | |
954 | 971 | | |
| |||
966 | 983 | | |
967 | 984 | | |
968 | 985 | | |
969 | | - | |
970 | | - | |
| 986 | + | |
| 987 | + | |
971 | 988 | | |
972 | | - | |
| 989 | + | |
973 | 990 | | |
974 | 991 | | |
975 | 992 | | |
| |||
993 | 1010 | | |
994 | 1011 | | |
995 | 1012 | | |
996 | | - | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
997 | 1018 | | |
998 | 1019 | | |
999 | 1020 | | |
| |||
1025 | 1046 | | |
1026 | 1047 | | |
1027 | 1048 | | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
1028 | 1064 | | |
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1710 | 1710 | | |
1711 | 1711 | | |
1712 | 1712 | | |
1713 | | - | |
1714 | | - | |
1715 | | - | |
1716 | | - | |
1717 | 1713 | | |
1718 | 1714 | | |
1719 | 1715 | | |
| |||
0 commit comments