Skip to content

Conversation

@mergify
Copy link

@mergify mergify bot commented Feb 28, 2025

The msg record was used in 3.13. This commit makes 4.x understand this record for backward compatibility, specifically for the rare case where:

  1. a 3.13 node internally parsed a message from a stream via
Message = mc:init(mc_amqp, amqp10_framing:decode_bin(Bin), #{})
  1. published this Message to a queue
  2. RabbitMQ got upgraded to 4.x

(This commit can be reverted in some future RabbitMQ version once it's safe to assume that these upgraded messages have been consumed.)

The changes were manually tested as described in Jira RMQ-1525.


This is an automatic backport of pull request #13435 done by [Mergify](https://mergify.com).
This is an automatic backport of pull request #13440 done by [Mergify](https://mergify.com).

The `msg` record was used in 3.13. This commit makes 4.x understand
this record for backward compatibility, specifically for the rare case where:
1. a 3.13 node internally parsed a message from a stream via
```
Message = mc:init(mc_amqp, amqp10_framing:decode_bin(Bin), #{})
```
2. published this Message to a queue
3. RabbitMQ got upgraded to 4.x

(This commit can be reverted in some future RabbitMQ version once it's
safe to assume that these upgraded messages have been consumed.)

The changes were manually tested as described in Jira RMQ-1525.

(cherry picked from commit 91f5ce2)
(cherry picked from commit 75cffc9)
@michaelklishin michaelklishin added this to the 4.0.8 milestone Feb 28, 2025
@michaelklishin michaelklishin merged commit 9c2b7cb into v4.0.x Mar 1, 2025
270 checks passed
@michaelklishin michaelklishin deleted the mergify/bp/v4.0.x/pr-13440 branch March 1, 2025 00:42
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.

3 participants