emqx/lib-ee/emqx_ee_bridge/test
Thales Macedo Garitezi 7242ce426b fix(kafka_producer): cleanup client after failing to start producers
https://emqx.atlassian.net/browse/EMQX-8547

If a Kafka Producer bridge is given bad configuration (e.g.: bad authn
credentials), the Wolff client process is started successfully, as it
does not attempt to connect, but when the producer process is
attempted to be started, it fails (only then the client tries to
connect to Kafka).  At this point, an error was thrown, but the
supervised client process remained running.

If the configuration was later fixed and the bridge updated, which
prompted its removal and recreation, the Wolff client would report to
be "already started", so it would never pick up the new (fixed)
configuration, and the producers would perpetually fail to start until
the node would be restarted.

We simply ensure the client is stopped before throwing the error,
unrolling the start-up procedure.
2022-12-19 17:48:40 -03:00
..
ee_bridge_hstreamdb_SUITE.erl chore: use HStreamDB for module name 2022-08-07 19:37:44 +08:00
emqx_bridge_impl_kafka_producer_SUITE.erl fix(kafka_producer): cleanup client after failing to start producers 2022-12-19 17:48:40 -03:00
emqx_ee_bridge_gcp_pubsub_SUITE.erl refactor(test): use a linked janitor for test teardown 2022-12-12 17:18:19 -03:00
emqx_ee_bridge_influxdb_SUITE.erl test(ci): clean config after test 2022-12-12 17:18:13 -03:00
emqx_ee_bridge_mongodb_SUITE.erl test: render config for emqx_conf only for ee bridge tests 2022-12-07 18:27:06 +01:00
emqx_ee_bridge_mysql_SUITE.erl test: remove unnecessary async tests in EE mysql bridge 2022-12-01 16:38:03 +01:00
emqx_ee_bridge_redis_SUITE.erl feat(bridge): add Redis bridge 2022-12-06 23:15:42 +03:00