fix(emqx_bridge_hstreamdb): fix resources cleanup in on_stop/2 cb
fixes: EMQX-10962
This commit is contained in:
parent
6fe846bf0e
commit
80cf60e9be
|
@ -48,7 +48,7 @@ on_start(InstId, Config) ->
|
||||||
|
|
||||||
on_stop(InstId, _State) ->
|
on_stop(InstId, _State) ->
|
||||||
case emqx_resource:get_allocated_resources(InstId) of
|
case emqx_resource:get_allocated_resources(InstId) of
|
||||||
#{client := Client, producer := Producer} ->
|
#{?hstreamdb_client := #{client := Client, producer := Producer}} ->
|
||||||
StopClientRes = hstreamdb:stop_client(Client),
|
StopClientRes = hstreamdb:stop_client(Client),
|
||||||
StopProducerRes = hstreamdb:stop_producer(Producer),
|
StopProducerRes = hstreamdb:stop_producer(Producer),
|
||||||
?SLOG(info, #{
|
?SLOG(info, #{
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
Fix resources cleanup in HStreamdB bridge.
|
||||||
|
|
||||||
|
Prior to this fix, HStreamDB bridge might report errors during bridge configuration updates, since hstreamdb client/producer were not stopped properly.
|
Loading…
Reference in New Issue