Skip to content

Correctly implement format_state/1 in rabbit_priority_queue#14555

Merged
michaelklishin merged 1 commit intorabbitmq:mainfrom
lukebakken:lukebakken/fix-format-status-followup
Sep 16, 2025
Merged

Correctly implement format_state/1 in rabbit_priority_queue#14555
michaelklishin merged 1 commit intorabbitmq:mainfrom
lukebakken:lukebakken/fix-format-status-followup

Conversation

@lukebakken
Copy link
Copy Markdown
Collaborator

@lukebakken lukebakken commented Sep 16, 2025

Follow-up to #14523

The previous implementation did not take the unique passthrough record into account when formatting state.

To test the priority and non-priority scenarios, add exit(kaboom) in rabbit_amqqueue_process handle_call({basic_consume... then run PerfTest with these arguments:

--producers 1 --consumers 1 --pmessages 100 --queue-args x-max-priority=10

--producers 1 --consumers 1 --pmessages 100

The previous implementation did not take the unique `passthrough` record
into account when formatting state.

To test the priority and non-priority scenarios, add `exit(kaboom)` in
`rabbit_amqqueue_process` `handle_call({basic_consume...` then run
PerfTest with these arguments:

```
--producers 1 --consumers 1 --pmessages 100 --queue-args x-max-priority=10

--producers 1 --consumers 1 --pmessages 100
```
@michaelklishin michaelklishin added this to the 4.3.0 milestone Sep 16, 2025
@michaelklishin michaelklishin merged commit 18e4bf6 into rabbitmq:main Sep 16, 2025
285 of 287 checks passed
@michaelklishin
Copy link
Copy Markdown
Collaborator

Thank you, @lukebakken @the-mikedavis

@lukebakken
Copy link
Copy Markdown
Collaborator Author

Sorry about the oversight!

@lukebakken lukebakken deleted the lukebakken/fix-format-status-followup branch November 11, 2025 22:11
lukebakken pushed a commit to lukebakken/rmq-rabbitmq-server that referenced this pull request Mar 17, 2026
…at-status-followup

Correctly implement `format_state/1` in `rabbit_priority_queue`

(cherry picked from commit 18e4bf6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants