-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Refactor rabbit_channel from gen_server2 to gen_server #12209
base: main
Are you sure you want to change the base?
Conversation
@mkuratczyk the AWS peer discovery failure almost certainly has nothing to do with these changes. Even after clearing certain resources the suite sometimes leaks, it (sometimes) continues failing on topic branches only to succeed in |
The AWS test suite is green after one more retry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes are incomplete. The following callbacks specific to gen_server2
are still in the module but unused:
- handle_pre_hibernate/1
- handle_post_hibernate/1
- prioritise_call/4
- prioritise_cast/3
- prioritise_info/3
- format_message_queue/2
Priorities can likely just be removed. Format can likely be converted to format_status/1
. Pre and post hibernate are a little more complex in that they do seemingly useful things so we need to make sure those things are still done, or remove them if they're not useful.
`format_status` replaces the queue of pending messages, which is sometimes very long, with just the number of messages pending.
c769aaf
to
5a86545
Compare
5cfbb9f
to
f41fd14
Compare
Refactor rabbit_channel from gen_server2 to gen_server
Tests with 100B messages:
Tests with 1kB messages:
Tests with 5kB messages:
Tests with 20kB messages:
Full test results:
https://grafana.lionhead.rabbitmq.com/goto/cxGVTkeIR?orgId=1