emqx/apps/emqx_bridge_kafka/test
Thales Macedo Garitezi 32e6213ce3 fix(resource_manager_sup): use one_for_one instead of simple_one_for_one
Using `simple_one_for_one` has a potential race condition issue where
we read the PID of the resource manager before trying to remove a
resource, and then that PID changes because it was either dead at
first, or it crashed and changed, and later we use this stale PID to
try to remove it from the supervisor.  Under such circumstances, the
restarting child might linger in the supervisor, leaking resources.

By using the resource ID itself as a child ID (and using `one_for_one`
restart strategy), we ensure the child is truly removed.
2023-05-25 18:07:43 -03:00
..
emqx_bridge_kafka_impl_consumer_SUITE.erl fix(resource_manager_sup): use one_for_one instead of simple_one_for_one 2023-05-25 18:07:43 -03:00
emqx_bridge_kafka_impl_producer_SUITE.erl feat(kafka): ensure allocated resources are removed on failures 2023-05-25 16:38:09 -03:00
emqx_bridge_kafka_tests.erl refactor: rename emqx_map_lib to emqx_utils_maps 2023-04-14 13:41:34 +02:00