emqx/apps
Thales Macedo Garitezi db83457d13 test: fix flaky test
The cause was that the call `sys:terminate/2` was timing out...

`exit/2` doens't always work:

```
 2023-11-22 19:14:40.974
killed async workers

Error: -22T19:14:40.974563+00:00 [error] crasher: initial call: gun:proc_lib_hack/5, pid: <0.15908.7>, registered_name: [], exit: {{{owner_gone,killed},[{gun,owner_gone,1,[{file,"gun.erl"},{line,970}]},{gun,proc_lib_hack,5,[{file,"gun.erl"},{line,649}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]},[{gun,proc_lib_hack,5,[{file,"gun.erl"},{line,654}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}, ancestors: [gun_sup,<0.15387.7>], message_queue_len: 0, messages: [], links: [<0.15388.7>], dictionary: [], trap_exit: false, status: running, heap_size: 987, stack_size: 28, reductions: 1822; neighbours:
Error: -22T19:14:40.998051+00:00 [error] Supervisor: {local,gun_sup}. Context: child_terminated. Reason: {{owner_gone,killed},[{gun,owner_gone,1,[{file,"gun.erl"},{line,970}]},{gun,proc_lib_hack,5,[{file,"gun.erl"},{line,649}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}. Offender: id=gun,pid=<0.15908.7>.
2023-11-22T19:15:41.088752+00:00 [critical] Run stage failed: error:{badmatch,{timeout,#{expected_remaining => 1,mailbox => {messages,[]},msgs_so_far => []}}}, Stacktrace: [{emqx_bridge_gcp_pubsub_consumer_SUITE,'-t_async_worker_death_mid_pull/1-fun-17-',3,[{file,"/emqx/apps/emqx_bridge_gcp_pubsub/test/emqx_bridge_gcp_pubsub_consumer_SUITE.erl"},{line,1576}]},{emqx_bridge_gcp_pubsub_consumer_SUITE,t_async_worker_death_mid_pull,1,[{file,"/emqx/apps/emqx_bridge_gcp_pubsub/test/emqx_bridge_gcp_pubsub_consumer_SUITE.erl"},{line,1505}]}], Trace dump: "/emqx/_build/test/logs/ct_run.test@127.0.0.1.2023-11-22_19.14.27/snabbkaffe/1700680540975786370.log", mfa: undefined
Error: -22T19:15:46.095702+00:00 [error] crasher: initial call: gun:proc_lib_hack/5, pid: <0.15934.7>, registered_name: [], exit: {{{owner_gone,killed},[{gun,owner_gone,1,[{file,"gun.erl"},{line,970}]},{gun,proc_lib_hack,5,[{file,"gun.erl"},{line,649}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]},[{gun,proc_lib_hack,5,[{file,"gun.erl"},{line,654}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}, ancestors: [gun_sup,<0.15387.7>], message_queue_len: 0, messages: [], links: [<0.15388.7>], dictionary: [], trap_exit: false, status: running, heap_size: 610, stack_size: 28, reductions: 1471; neighbours:
Error: -22T19:15:46.095192+00:00 [error] Supervisor: {local,ehttpc_sup}. Context: shutdown_error. Reason: killed. Offender: id={ehttpc_pool_sup,<<98,114,105,100,103,101,58,103,99,112,95,112,117,98,115,117,98,95,99,111,110,115,117,109,101,114,58,116,95,97,115,121,110,99,95,119,111,114,107,101,114,95,100,101,97,116,104,95,109,105,100,95,112,117,108,108,45,53,55,54,52,54,48,55,53,50,51,48,51,52,50,50,55,53,49>>},pid=<0.15903.7>.
Error: -22T19:15:46.095470+00:00 [error] Supervisor: {<0.15906.7>,ehttpc_worker_sup}. Context: shutdown_error. Reason: killed. Offender: id={worker,1},pid=<0.15924.7>.
Error: -22T19:15:46.096762+00:00 [error] Supervisor: {local,gun_sup}. Context: child_terminated. Reason: {{owner_gone,killed},[{gun,owner_gone,1,[{file,"gun.erl"},{line,970}]},{gun,proc_lib_hack,5,[{file,"gun.erl"},{line,649}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}. Offender: id=gun,pid=<0.15934.7>.
Warning: 2T19:15:46.098278+00:00 [warning] msg: remove_local_resource_failed, mfa: emqx_resource:remove_local/1(362), error: {error,timeout}, resource_id: <<"bridge:gcp_pubsub_consumer:t_async_worker_death_mid_pull-576460752303422751">>
Error: -22T19:15:46.149090+00:00 [error] Generic server <0.15904.7> terminating. Reason: killed. Last message: {'EXIT',<0.15903.7>,killed}. State: {state,<<"bridge:gcp_pubsub_consumer:t_async_worker_death_mid_pull-576460752303422751">>,1,random}.
Error: -22T19:15:46.149525+00:00 [error] crasher: initial call: ehttpc_pool:init/1, pid: <0.15904.7>, registered_name: [], exit: {killed,[{gen_server,decode_msg,9,[{file,"gen_server.erl"},{line,909}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]}, ancestors: [<0.15903.7>,ehttpc_sup,<0.15731.7>], message_queue_len: 0, messages: [], links: [], dictionary: [], trap_exit: true, status: running, heap_size: 376, stack_size: 28, reductions: 3428; neighbours:
```
2023-11-22 17:41:32 -03:00
..
emqx chore: bump release version to e5.3.2-alpha.1 2023-11-21 21:19:05 +01:00
emqx_auth chore: bump apps versions 2023-11-14 11:02:26 +01:00
emqx_auth_http chore: bump apps versions 2023-11-14 11:02:26 +01:00
emqx_auth_jwt chore: bump apps versions 2023-11-14 11:02:26 +01:00
emqx_auth_ldap chore: bump apps versions 2023-11-14 11:02:26 +01:00
emqx_auth_mnesia chore: bump apps versions 2023-11-14 11:02:26 +01:00
emqx_auth_mongodb chore: bump apps versions 2023-11-14 11:02:26 +01:00
emqx_auth_mysql chore: bump apps versions 2023-11-14 11:02:26 +01:00
emqx_auth_postgresql chore: bump apps versions 2023-11-14 11:02:26 +01:00
emqx_auth_redis chore: bump apps versions 2023-11-14 11:02:26 +01:00
emqx_auto_subscribe feat: implement configuration and user data export/import CLI 2023-06-09 14:11:47 +03:00
emqx_bridge Merge pull request #11997 from zmstone/1121-do-not-allow-special-char-as-prefix-for-resource-name 2023-11-22 15:46:11 +01:00
emqx_bridge_azure_event_hub feat(actions): allow multiple action info modules per application 2023-11-22 09:30:37 -03:00
emqx_bridge_cassandra fix(cass): avoid using aggregates in healthcheck query 2023-10-13 16:50:19 +07:00
emqx_bridge_clickhouse feat: split bridges into a connector part and a bridge part 2023-10-30 14:48:47 +01:00
emqx_bridge_dynamo chore: merge 'upstream/master' into v5.1.2 2023-07-21 13:25:46 +02:00
emqx_bridge_gcp_pubsub test: fix flaky test 2023-11-22 17:41:32 -03:00
emqx_bridge_greptimedb chore: bump app versions 2023-11-10 13:41:51 +01:00
emqx_bridge_hstreamdb chore: bump apps versions 2023-09-21 10:58:42 +02:00
emqx_bridge_http chore: bump apps versions 2023-11-14 11:02:26 +01:00
emqx_bridge_influxdb chore: bump app versions 2023-11-10 13:41:51 +01:00
emqx_bridge_iotdb feat: add Azure Event Hub Producer bridge 2023-07-27 09:22:39 -03:00
emqx_bridge_kafka feat(actions): allow multiple action info modules per application 2023-11-22 09:30:37 -03:00
emqx_bridge_kinesis chore: bump app vsns 2023-09-06 11:12:56 +02:00
emqx_bridge_matrix fix(machine_boot): ensure emqx_bridge starts after its companion apps 2023-07-20 13:11:44 -03:00
emqx_bridge_mongodb feat: split bridges into a connector part and a bridge part 2023-10-30 14:48:47 +01:00
emqx_bridge_mqtt feat: split bridges into a connector part and a bridge part 2023-10-30 14:48:47 +01:00
emqx_bridge_mysql fix(tpl): ensure full backward compat in basic connectors 2023-11-02 20:13:32 +07:00
emqx_bridge_opents chore: unified slog message formatting to improve logging consistency 2023-09-20 18:13:00 +08:00
emqx_bridge_oracle fix(http_bridge): don't attempt to convert headers to atoms 2023-08-07 13:08:34 -03:00
emqx_bridge_pgsql feat(tpl): switch basic connectors to emqx_connector_template 2023-11-02 17:11:09 +07:00
emqx_bridge_pulsar test(flaky): fix flaky pulsar test 2023-11-21 16:00:19 -03:00
emqx_bridge_rabbitmq chore: bump app versions 2023-11-10 13:41:51 +01:00
emqx_bridge_redis feat: split bridges into a connector part and a bridge part 2023-10-30 14:48:47 +01:00
emqx_bridge_rocketmq fix(machine_boot): ensure emqx_bridge starts after its companion apps 2023-07-20 13:11:44 -03:00
emqx_bridge_sqlserver chore: bump apps versions 2023-09-21 10:58:42 +02:00
emqx_bridge_tdengine chore: unified slog message formatting to improve logging consistency 2023-09-20 18:13:00 +08:00
emqx_bridge_timescale fix(machine_boot): ensure emqx_bridge starts after its companion apps 2023-07-20 13:11:44 -03:00
emqx_conf chore: remove obsolete workaround 2023-11-21 17:38:13 -03:00
emqx_connector fix(emqx_resource): do not allow leading _ or - as resource name 2023-11-22 10:58:54 +01:00
emqx_ctl fix(audit): handle abstract forms when logging eval_erl 2023-10-10 12:31:19 +07:00
emqx_dashboard Merge pull request #11936 from zmstone/1112-readable-types 2023-11-14 17:56:07 +01:00
emqx_dashboard_rbac fix: allow viewers to change their own passwords 2023-10-18 18:40:02 +08:00
emqx_dashboard_sso chore: bump app versions 2023-11-10 13:41:51 +01:00
emqx_durable_storage chore: bump apps versions 2023-11-14 11:02:26 +01:00
emqx_enterprise chore: bump apps versions 2023-11-14 11:02:26 +01:00
emqx_eviction_agent docs: swagger api tags should camel case 2023-10-09 15:21:51 +08:00
emqx_exhook chore: shutdown reason will never be a UTF8 atom 2023-09-01 14:17:33 +08:00
emqx_ft chore: bump apps versions 2023-11-14 11:02:26 +01:00
emqx_gateway chore: bump apps versions 2023-11-14 11:02:26 +01:00
emqx_gateway_coap chore: bump apps versions 2023-11-14 11:02:26 +01:00
emqx_gateway_exproto chore(auth): split emqx_authn and emqx_authz apps 2023-10-05 13:41:50 +03:00
emqx_gateway_lwm2m chore(auth): update tests 2023-10-05 13:41:50 +03:00
emqx_gateway_mqttsn chore(auth): get rid of hardcoded schema modules in auth 2023-10-05 13:41:50 +03:00
emqx_gateway_stomp fix(emqx_channel): do not log stale sock_close event as error 2023-11-19 22:27:25 +01:00
emqx_gcp_device chore: bump apps versions 2023-11-14 11:02:26 +01:00
emqx_ldap chore: bump apps versions 2023-11-14 11:02:26 +01:00
emqx_license refactor(schema): add namespace/0 to all schema modules 2023-11-10 13:41:51 +01:00
emqx_machine chore: bump apps versions 2023-11-14 11:02:26 +01:00
emqx_management chore: bump apps versions 2023-11-14 11:02:26 +01:00
emqx_modules fix: observer load command crash when loading noexist module 2023-10-11 10:36:33 +08:00
emqx_mongodb fix(mongodb): fix deadlock while stopping mongodb resource 2023-11-17 12:34:36 +03:00
emqx_mysql chore: bump apps versions 2023-11-14 11:02:26 +01:00
emqx_node_rebalance docs: swagger api tags should camel case 2023-10-09 15:21:51 +08:00
emqx_opentelemetry fix: use binary string for raw default values 2023-10-24 14:46:01 +02:00
emqx_oracle chore: bump apps versions 2023-09-21 10:58:42 +02:00
emqx_plugins fix: emqx failed to start if plugin dir is removed by the user 2023-11-09 16:01:20 +08:00
emqx_postgresql fix(tpl): ensure full backward compat in basic connectors 2023-11-02 20:13:32 +07:00
emqx_prometheus refactor(schema): add args to map alias 2023-11-12 11:29:33 +01:00
emqx_psk fix: psk_authentication is updated failed 2023-07-07 20:02:06 +08:00
emqx_redis chore: bump apps versions 2023-11-14 11:02:26 +01:00
emqx_resource fix(emqx_resource): do not allow leading _ or - as resource name 2023-11-22 10:58:54 +01:00
emqx_retainer refactor(emqx_limiter_schema): use typerefl alias 2023-11-10 13:41:51 +01:00
emqx_rule_engine chore: bump apps versions 2023-11-14 11:02:26 +01:00
emqx_s3 chore: bump apps versions 2023-11-14 11:02:26 +01:00
emqx_schema_registry docs: swagger api tags should camel case 2023-10-09 15:21:51 +08:00
emqx_slow_subs chore(auth): update tests 2023-10-05 13:41:50 +03:00
emqx_telemetry chore: bump app versions 2023-11-10 13:41:51 +01:00
emqx_utils fix: port emqx_utils_maps:rename function from master 2023-11-21 15:18:22 +01:00