Skip to content

Conversation

@mergify
Copy link

@mergify mergify bot commented Mar 27, 2025

Prior to this commit, when a client consumed from an unavailable quorum queue, the following crash occurred:

{badmatch,{error,noproc}}
[{rabbit_quorum_queue,consume,3,[{file,\"rabbit_quorum_queue.erl\"},{line,993}]}

This commit fixes this bug by returning any error when registering a quorum queue consumer to rabbit_queue_type.

This commit also refactors errors returned by
rabbit_queue_type:consume/3 to simplify and ensure seperation of concerns.

For example prior to this commit, the channel did error formatting specifically for consuming from streams. It's better if the channel is unaware of what queue type it consumes from and have each queue type implementation format their own errors.

Jira: RMQ-1582


This is an automatic backport of pull request #13625 done by Mergify.

ansd added 2 commits March 27, 2025 10:31
Prior to this commit, when a client consumed from an unavailable quorum
queue, the following crash occurred:
```
{badmatch,{error,noproc}}
[{rabbit_quorum_queue,consume,3,[{file,\"rabbit_quorum_queue.erl\"},{line,993}]}
```

This commit fixes this bug by returning any error when registering a
quorum queue consumer to rabbit_queue_type.

This commit also refactors errors returned by
rabbit_queue_type:consume/3 to simplify and ensure seperation of
concerns.

For example prior to this commit, the channel did error
formatting specifically for consuming from streams. It's better if
the channel is unaware of what queue type it consumes from and have each
queue type implementation format their own errors.

(cherry picked from commit ef1a595)
@mergify mergify bot assigned ansd Mar 27, 2025
@ansd ansd merged commit d0dc7fb into v4.1.x Mar 27, 2025
273 checks passed
@ansd ansd deleted the mergify/bp/v4.1.x/pr-13625 branch March 27, 2025 11:12
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