Skip to content

Conversation

@ansd
Copy link
Member

@ansd ansd commented Feb 27, 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.

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.
@ansd ansd marked this pull request as ready for review February 28, 2025 08:54
@michaelklishin michaelklishin merged commit 9fdd42c into main Feb 28, 2025
269 checks passed
@michaelklishin michaelklishin deleted the mc-amqp-msg branch February 28, 2025 22:20
@michaelklishin michaelklishin added this to the 4.1.0 milestone Feb 28, 2025
michaelklishin added a commit that referenced this pull request Feb 28, 2025
Handle mc_amqp 3.13 `msg` record in 4.x (backport #13435)
michaelklishin added a commit that referenced this pull request Mar 1, 2025
Handle mc_amqp 3.13 `msg` record in 4.x (backport #13435) (backport #13440)
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.

4 participants