Fix issues with multiple src and dest queue args (backport #8356)#15650
Merged
michaelklishin merged 2 commits intov4.2.xfrom Mar 6, 2026
Merged
Fix issues with multiple src and dest queue args (backport #8356)#15650michaelklishin merged 2 commits intov4.2.xfrom
michaelklishin merged 2 commits intov4.2.xfrom
Conversation
(cherry picked from commit 4567c3c)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #8323
Follow-up to #2802
The
src-queue-argsanddest-queue-argsshovel parameters were validated usingrabbit_parameter_validation:proplist/3, which calls validators asFun(Key, Value). However, the validators fromrabbit_amqqueue:declare_args/0expect to be called asFun({Type, Value}, FullTable)— with an AMQP-typed value and the full args table for cross-referencing (e.g.check_dlxrk_arg/2looks upx-dead-letter-exchangein the table).This mismatch caused crashes when multiple args were specified, such as
x-dead-letter-exchange+x-dead-letter-routing-keyon a quorum queue, orx-max-ageon a stream queue.The fix converts the input to an AMQP table and validates using the same convention as
rabbit_amqqueue:check_arguments_type_and_value/3.This is an automatic backport of pull request #8356 done by Mergify.