emqx/lib-ee
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
..
emqx_ee_bridge fix(kafka_producer): cleanup client after failing to start producers 2022-12-19 17:48:40 -03:00
emqx_ee_conf chore: fix app versions 2022-11-16 16:26:43 +01:00
emqx_ee_connector chore: bump app versions 2022-12-14 20:07:41 +01:00
emqx_license chore: add an empty file emqx_license.conf to make ci happy 2022-11-30 12:52:26 +01:00
BSL.txt docs: More EMQ X -> EMQX rename in descriptive strings 2022-02-15 22:39:11 +01:00