Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert AMQP 1.0 props and app props to AMQP 0.9.1 props and headers #10037

Conversation

luos
Copy link
Contributor

@luos luos commented Dec 4, 2023

Hi,

As requested in #10022 this is a backport to 3.12.x.

The configuration option was removed and now all the properties are always converted to headers or other appropriate properties.
The priority was moved to the Header section according to AMQP 1.0 (section 3.2.1)

  • Timestamps are milliseconds in AMQP 1.0, but in AMQP 0.9.1 it is seconds. Fixed by multiplying the timestamp by 1 000.
  • Shovel crashed if user_id was set in the message because the encoding was as utf8 while it should be a byte array.
  • Negative integers were encoded as integers - therefore leading to incorrect positive values.
  • Float values were not supported by the client.
  • Fixed priority header encoding in AMQP 1.0. It was set as uint but it should be ubyte.
  • Priority of the message is now in the Headers instead of Application Properties. This is potentially a breaking change.

Fixes: #7508

Types of Changes

What types of changes does your code introduce to this project?
Put an x in the boxes that apply

  • Bug fix (non-breaking change which fixes issue #NNNN)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause an observable behavior change in existing systems)
  • Documentation improvements (corrections, new content, etc)
  • Cosmetic change (whitespace, formatting, etc)
  • Build system and/or CI

Checklist

Put an x in the boxes that apply.
You can also fill these out after creating the PR.
If you're unsure about any of them, don't hesitate to ask on the mailing list.
We're here to help!
This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING.md document
  • I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
  • I have added tests that prove my fix is effective or that my feature works
  • All tests pass locally with my changes
  • If relevant, I have added necessary documentation to https://github.com/rabbitmq/rabbitmq-website
  • If relevant, I have added this change to the first version(s) in release-notes that I expect to introduce it

- Timestamps are milliseconds in AMQP 1.0, but in AMQP 0.9.1 it is seconds.
  Fixed by multiplying the timestamp by 1 000.
- Shovel crashed if user_id was set in the message because the encoding
  was as utf8 while it should be a byte array.
- Negative integers were encoded as integers - therefore leading to
  incorrect positive values.
- Float values were not supported by the client.
- Fixed priority header encoding in AMQP 1.0. It was set as uint but it
  should be ubyte.
- Priority of the message is now in the Headers instead of Application
  Properties. This is potentially a breaking change.

Fixes: rabbitmq#7508
@michaelklishin
Copy link
Member

@Mergifyio backport v3.13.x

Copy link

mergify bot commented Jul 16, 2024

backport v3.13.x

✅ Backports have been created

@kjnilsson
Copy link
Contributor

@Mergifyio backport main

Copy link

mergify bot commented Jul 16, 2024

backport main

✅ Backports have been created

michaelklishin added a commit that referenced this pull request Jul 16, 2024
Convert AMQP 1.0 props and app props to AMQP 0.9.1 props and headers (backport #10037)
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.

4 participants