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}) ->
|
||||
#{SubId := Consumer} = Consumers,
|
||||
case {MemberPid, Consumer} of
|
||||
{undefined, _C} ->
|
||||
{undefined, #consumer{log = Log}} ->
|
||||
rabbit_stream_metrics:consumer_cancelled(self(),
|
||||
stream_r(Stream,
|
||||
C0),
|
||||
SubId,
|
||||
Username),
|
||||
|
||||
close_log(Log),
|
||||
Rqsts1 = maybe_unregister_consumer(
|
||||
VirtualHost, Consumer,
|
||||
single_active_consumer(Consumer),
|
||||
Rqsts0),
|
||||
{[SubId | DelSubIds], Rqsts1};
|
||||
{MemberPid,
|
||||
#consumer{configuration =
|
||||
#consumer_configuration{member_pid = MemberPid}}} ->
|
||||
#consumer{
|
||||
log = Log,
|
||||
configuration = #consumer_configuration{member_pid = MemberPid}}} ->
|
||||
rabbit_stream_metrics:consumer_cancelled(self(),
|
||||
stream_r(Stream,
|
||||
C0),
|
||||
SubId,
|
||||
Username),
|
||||
close_log(Log),
|
||||
Rqsts1 = maybe_unregister_consumer(
|
||||
VirtualHost, Consumer,
|
||||
single_active_consumer(Consumer),
|
||||
|
|
Loading…
Reference in New Issue