@@ -811,7 +811,8 @@ state_enter0(leader, #?STATE{consumers = Cons,
811
811
{Mod , Fun , Args } ->
812
812
[{mod_call , Mod , Fun , Args ++ [Name ]} | Effects ]
813
813
end ;
814
- state_enter0 (eol , #? STATE {enqueuers = Enqs ,
814
+ state_enter0 (eol , #? STATE {cfg = # cfg {resource = R },
815
+ enqueuers = Enqs ,
815
816
consumers = Cons0 ,
816
817
waiting_consumers = WaitingConsumers0 },
817
818
Effects ) ->
@@ -822,6 +823,8 @@ state_enter0(eol, #?STATE{enqueuers = Enqs,
822
823
Acc #{P => V }
823
824
end , #{}, WaitingConsumers0 ),
824
825
AllConsumers = maps :merge (Custs , WaitingConsumers1 ),
826
+ rabbit_log :info (" EOL ~p " , [R ]),
827
+ rabbit_quorum_queue :rpc_delete_metrics (R ),
825
828
[{send_msg , P , eol , ra_event }
826
829
|| P <- maps :keys (maps :merge (Enqs , AllConsumers ))] ++
827
830
[{aux , eol }
@@ -836,7 +839,7 @@ tick(Ts, #?STATE{cfg = #cfg{resource = QName}} = State) ->
836
839
true ->
837
840
[{mod_call , rabbit_quorum_queue , spawn_deleter , [QName ]}];
838
841
false ->
839
- [{aux , {handle_tick , [QName , overview ( State ), all_nodes (State )]}}]
842
+ [{aux , {handle_tick , [QName , all_nodes (State )]}}]
840
843
end .
841
844
842
845
-spec overview (state ()) -> map ().
@@ -1029,10 +1032,12 @@ handle_aux(_RaftState, cast, {#return{msg_ids = MsgIds,
1029
1032
% % for returns with a delivery limit set we can just return as before
1030
1033
{no_reply , Aux0 , RaAux0 , [{append , Ret , {notify , Corr , Pid }}]}
1031
1034
end ;
1032
- handle_aux (leader , _ , {handle_tick , [QName , MacOverview0 , Nodes ]},
1035
+ handle_aux (leader , _ , {handle_tick , [QName , Nodes ]},
1033
1036
#? AUX {tick_pid = Pid } = Aux , RaAux ) ->
1037
+ RaOverview = ra_aux :overview (RaAux ),
1038
+ MacOverview0 = maps :get (machine , RaOverview ),
1034
1039
Overview = MacOverview0 #{members_info => ra_aux :members_info (RaAux ),
1035
- ra_overview => ra_aux : overview ( RaAux )},
1040
+ ra_overview => maps : remove ( machine , RaOverview )},
1036
1041
NewPid =
1037
1042
case process_is_alive (Pid ) of
1038
1043
false ->
0 commit comments