Skip to content

Fix rabbit_priority_queue:update_rates bug #11814

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2024
Merged

Conversation

mkuratczyk
Copy link
Contributor

updates_rates fails after publishing a message to a queue with priorities enabled.

crasher:
  initial call: rabbit_amqqueue_process:init/1
  pid: <0.960.0>
  registered_name: []
  exception exit: {{badmatch,
                       {vqstate,
                           {0,[],[]},
                           {0,[],[]},
                           {delta,undefined,0,0,undefined},
                           {0,[],[]},
                           {0,[],[]},
                           0,0,#{},#{},undefined,undefined,
                           {qi,{resource,<<"/">>,queue,<<99,113,0,2>>},
                               <<"/Users/mkuratczyk/data/rabbit@K6L59PF0JR/mnesia/rabbit@K6L59PF0JR/msg_stores/vhosts/628WB79CIFDYO9LJI6DKMI09L/queues/BPWWR1U7IEHC4L1Q5XY02T7PC/">>,
                               #{},0,#{},#{},#{},#{},
                               #Fun<rabbit_variable_queue.2.111551927>,
                               #Fun<rabbit_variable_queue.3.111551927>},
                           {qs,<<"/Users/mkuratczyk/data/rabbit@K6L59PF0JR/mnesia/rabbit@K6L59PF0JR/msg_stores/vhosts/628WB79CIFDYO9LJI6DKMI09L/queues/BPWWR1U7IEHC4L1Q5XY02T7PC/">>,
                               undefined,64,#{},0,#{},undefined,undefined},
                           {{client_msstate,<0.655.0>,
                                <<251,1,246,93,24,26,254,147,143,94,222,220,
                                  193,217,33,30>>,
                                undefined,
                                #Ref<0.2192576155.4007788549.111221>,
                                <<"/Users/mkuratczyk/data/rabbit@K6L59PF0JR/mnesia/rabbit@K6L59PF0JR/msg_stores/vhosts/628WB79CIFDYO9LJI6DKMI09L/msg_store_persistent">>,
                                #Ref<0.2192576155.4007788549.111222>,
                                #Ref<0.2192576155.4007788549.111223>,
                                #Ref<0.2192576155.4007788549.111224>,
                                {4000,800}},
                            {client_msstate,<0.651.0>,
                                <<189,161,86,32,42,229,118,111,100,98,137,
                                  173,165,187,168,179>>,
                                undefined,
                                #Ref<0.2192576155.4007788551.110779>,
                                <<"/Users/mkuratczyk/data/rabbit@K6L59PF0JR/mnesia/rabbit@K6L59PF0JR/msg_stores/vhosts/628WB79CIFDYO9LJI6DKMI09L/msg_store_transient">>,
                                #Ref<0.2192576155.4007788551.110780>,
                                #Ref<0.2192576155.4007788551.110781>,
                                #Ref<0.2192576155.4007788551.110782>,
                                {4000,800}}},
                           true,0,4096,0,0,0,0,0,0,infinity,0,0,0,0,0,0,
                           {rates,0.0,0.0,0.0,0.0,-576460739236874125},
                           #{},#{},#{},#{},0,0,0,0,4096,default,2,#{},
                           <<"/">>,false}},
                   [{rabbit_priority_queue,'-fold_min2/2-fun-0-',4,
                        [{file,"rabbit_priority_queue.erl"},{line,496}]},
                    {rabbit_priority_queue,fold2,4,
                        [{file,"rabbit_priority_queue.erl"},{line,474}]},
                    {rabbit_priority_queue,fold2,3,
                        [{file,"rabbit_priority_queue.erl"},{line,470}]},
                    {rabbit_amqqueue_process,handle_pre_hibernate,1,
                        [{file,"rabbit_amqqueue_process.erl"},{line,1694}]},
                    {gen_server2,pre_hibernate,1,
                        [{file,"gen_server2.erl"},{line,729}]},
                    {proc_lib,init_p_do_apply,3,
                        [{file,"proc_lib.erl"},{line,329}]}]}

updates_rates fails after publishing a message to a queue
with priorities enabled.
@mkuratczyk mkuratczyk merged commit ae41f65 into main Jul 24, 2024
191 checks passed
@mkuratczyk mkuratczyk deleted the fix-cq-update-rates branch July 24, 2024 14:34
mergify bot pushed a commit that referenced this pull request Jul 24, 2024
updates_rates fails after publishing a message to a queue
with priorities enabled.

(cherry picked from commit ae41f65)
mkuratczyk added a commit that referenced this pull request Jul 24, 2024
updates_rates fails after publishing a message to a queue
with priorities enabled.

(cherry picked from commit ae41f65)

Co-authored-by: Michal Kuratczyk <[email protected]>
michaelklishin pushed a commit that referenced this pull request Jul 24, 2024
updates_rates fails after publishing a message to a queue
with priorities enabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants