emqx/apps/emqx_utils/test
Thales Macedo Garitezi 50e7d5d2ec fix(nolink_apply): avoid sending late replies to caller
Due to race conditions, it's possible that the caller to `pmap`/`nolink_apply` might
receive a late reply.

e.g. when a timeout occurred while resource manager was checking a resource's health:

```
19:18:23.084 [error] [data: ..., event_data: {#Reference<0.3247872820.3887857670.131018>, {:normal, [false, true, true, true, true, true]}}, event_type: :info, msg: :ignore_all_other_events, state: :connected]
```

Using an alias and also checking for the race condition in the `after` block (like
[`gen`](a76bf63197/lib/stdlib/src/gen.erl (L270-L277))
does), we avoid polluting the caller's mailbox with late replies.
2023-06-16 17:03:39 -03:00
..
props fix: force proper calling decode to return proplist 2023-04-14 16:26:32 +02:00
emqx_placeholder_SUITE.erl refactor(pluglib): move emqx_placeholder to utils app 2023-06-09 14:44:36 +03:00
emqx_utils_api_SUITE.erl refactor: rename emqx_api_lib to emqx_utils_api 2023-04-14 13:41:33 +02:00
emqx_utils_binary_tests.erl style: remove unnecessary ifdef(TEST) 2023-04-14 18:45:25 +02:00
emqx_utils_conv_tests.erl refactor(pluglib): move conversion utils to emqx_utils_conv 2023-06-09 14:44:37 +03:00
emqx_utils_ets_SUITE.erl refactor: rename emqx_tables to emqx_utils_ets 2023-04-14 13:41:33 +02:00
emqx_utils_fs_SUITE.erl test: delete emqx_ft_fs_utils_SUITE_data from source code 2023-06-11 15:50:45 +08:00
emqx_utils_json_SUITE.erl fix: byebye jsx 2023-04-14 13:41:34 +02:00
emqx_utils_maps_tests.erl refactor: rename emqx_map_lib to emqx_utils_maps 2023-04-14 13:41:34 +02:00
emqx_utils_SUITE.erl fix(nolink_apply): avoid sending late replies to caller 2023-06-16 17:03:39 -03:00