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

Respect message_interceptors.incoming.set_header_timestamp #10925

Merged
merged 2 commits into from
Apr 10, 2024
Merged

Conversation

ansd
Copy link
Member

@ansd ansd commented Apr 5, 2024

Respect message_interceptors.incoming.set_header_timestamp

When feature flag message_containers is enabled, setting

message_interceptors.incoming.set_header_timestamp

wasn't respected anymore when a message is published via MQTT to a stream and subsequently consumed via AMQP 0.9.1.

This commit ensures that AMQP 0.9.1 header timestamp_in_ms will be set.

Note that we must not modify the AMQP 1.0 properties section when messages are received via AMQP 1.0 and consumed via AMQP 1.0.
Also, message annoation keys not starting with "x-" are reserved.

Reported in

@ansd ansd force-pushed the mc-timestamp branch 3 times, most recently from 6e4cd63 to ac6dc68 Compare April 9, 2024 11:49
When feature flag message_containers is enabled, setting
```
message_interceptors.incoming.set_header_timestamp
```
wasn't respected anymore when a message is published via MQTT to a
stream and subsequently consumed via AMQP 0.9.1.

This commit ensures that AMQP 0.9.1 header timestamp_in_ms will be
set.

Note that we must not modify the AMQP 1.0 properties section when messages
are received via AMQP 1.0 and consumed via AMQP 1.0.
Also, message annoation keys not starting with "x-" are reserved.
@ansd ansd marked this pull request as ready for review April 9, 2024 12:15
@ansd ansd merged commit c57ece8 into main Apr 10, 2024
20 of 21 checks passed
@ansd ansd deleted the mc-timestamp branch April 10, 2024 09:40
@ansd ansd added this to the 3.13.2 milestone Apr 10, 2024
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