Merge pull request #14146 from rabbitmq/mergify/bp/v4.1.x/pr-14143
Trigger a 4.1.x alpha release build / trigger_alpha_build (push) Waiting to run
Details
Test (make) / Build and Xref (1.17, 26) (push) Waiting to run
Details
Test (make) / Build and Xref (1.17, 27) (push) Waiting to run
Details
Test (make) / Test (1.17, 27, khepri) (push) Waiting to run
Details
Test (make) / Test (1.17, 27, mnesia) (push) Waiting to run
Details
Test (make) / Test mixed clusters (1.17, 27, khepri) (push) Waiting to run
Details
Test (make) / Test mixed clusters (1.17, 27, mnesia) (push) Waiting to run
Details
Test (make) / Type check (1.17, 27) (push) Waiting to run
Details
Trigger a 4.1.x alpha release build / trigger_alpha_build (push) Waiting to run
Details
Test (make) / Build and Xref (1.17, 26) (push) Waiting to run
Details
Test (make) / Build and Xref (1.17, 27) (push) Waiting to run
Details
Test (make) / Test (1.17, 27, khepri) (push) Waiting to run
Details
Test (make) / Test (1.17, 27, mnesia) (push) Waiting to run
Details
Test (make) / Test mixed clusters (1.17, 27, khepri) (push) Waiting to run
Details
Test (make) / Test mixed clusters (1.17, 27, mnesia) (push) Waiting to run
Details
Test (make) / Type check (1.17, 27) (push) Waiting to run
Details
Close stream consumer log after stream is deleted or unavailable (backport #14143)
This commit is contained in:
commit
17942ec9f6
|
@ -3309,25 +3309,29 @@ clean_subscriptions(MemberPid, Stream,
|
||||||
fun(SubId, {DelSubIds, Rqsts0}) ->
|
fun(SubId, {DelSubIds, Rqsts0}) ->
|
||||||
#{SubId := Consumer} = Consumers,
|
#{SubId := Consumer} = Consumers,
|
||||||
case {MemberPid, Consumer} of
|
case {MemberPid, Consumer} of
|
||||||
{undefined, _C} ->
|
{undefined, #consumer{log = Log}} ->
|
||||||
rabbit_stream_metrics:consumer_cancelled(self(),
|
rabbit_stream_metrics:consumer_cancelled(self(),
|
||||||
stream_r(Stream,
|
stream_r(Stream,
|
||||||
C0),
|
C0),
|
||||||
SubId,
|
SubId,
|
||||||
Username),
|
Username),
|
||||||
|
|
||||||
|
close_log(Log),
|
||||||
Rqsts1 = maybe_unregister_consumer(
|
Rqsts1 = maybe_unregister_consumer(
|
||||||
VirtualHost, Consumer,
|
VirtualHost, Consumer,
|
||||||
single_active_consumer(Consumer),
|
single_active_consumer(Consumer),
|
||||||
Rqsts0),
|
Rqsts0),
|
||||||
{[SubId | DelSubIds], Rqsts1};
|
{[SubId | DelSubIds], Rqsts1};
|
||||||
{MemberPid,
|
{MemberPid,
|
||||||
#consumer{configuration =
|
#consumer{
|
||||||
#consumer_configuration{member_pid = MemberPid}}} ->
|
log = Log,
|
||||||
|
configuration = #consumer_configuration{member_pid = MemberPid}}} ->
|
||||||
rabbit_stream_metrics:consumer_cancelled(self(),
|
rabbit_stream_metrics:consumer_cancelled(self(),
|
||||||
stream_r(Stream,
|
stream_r(Stream,
|
||||||
C0),
|
C0),
|
||||||
SubId,
|
SubId,
|
||||||
Username),
|
Username),
|
||||||
|
close_log(Log),
|
||||||
Rqsts1 = maybe_unregister_consumer(
|
Rqsts1 = maybe_unregister_consumer(
|
||||||
VirtualHost, Consumer,
|
VirtualHost, Consumer,
|
||||||
single_active_consumer(Consumer),
|
single_active_consumer(Consumer),
|
||||||
|
|
Loading…
Reference in New Issue