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

Remove BCC from x-death routing-keys (backport #11230) #11232

Merged
merged 1 commit into from
May 14, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented May 14, 2024

This commit is a follow up of #11174 which broke the following Java client test:

./mvnw verify -P '!setup-test-cluster' -Drabbitmqctl.bin=DOCKER:rabbitmq -Dit.test=DeadLetterExchange#deadLetterNewRK

The desired documented behaviour is the following:

routing-keys: the routing keys (including CC keys but excluding BCC ones) the message was published with

This behaviour should be respected also for messages dead lettered into a stream. Therefore, instead of first including the BCC keys in the #death.routing_keys field and removing it again in mc_amqpl before sending the routing-keys to the client as done in v3.13.2 in

RKs = [hd(RoutingKeys) | rabbit_basic:header_routes(Headers0)],
we instead omit directly the BCC keys from #death.routing_keys when recording a death event.

This commit records the BCC keys in their own mc bcc annotation in mc_amqpl:init/1.


This is an automatic backport of pull request #11230 done by Mergify.

This commit is a follow up of #11174
which broke the following Java client test:
```
./mvnw verify -P '!setup-test-cluster' -Drabbitmqctl.bin=DOCKER:rabbitmq -Dit.test=DeadLetterExchange#deadLetterNewRK
```

The desired documented behaviour is the following:
> routing-keys: the routing keys (including CC keys but excluding BCC ones) the message was published with

This behaviour should be respected also for messages dead lettered into a
stream. Therefore, instead of first including the BCC keys in the `#death.routing_keys` field
and removing it again in mc_amqpl before sending the routing-keys to the
client as done in v3.13.2 in
https://github.com/rabbitmq/rabbitmq-server/blob/dc25ef53292eb0b34588ab8eaae61082b966b784/deps/rabbit/src/mc_amqpl.erl#L527
we instead omit directly the BCC keys from `#death.routing_keys` when
recording a death event.

This commit records the BCC keys in their own mc `bcc` annotation in `mc_amqpl:init/1`.

(cherry picked from commit 90a4010)
@mergify mergify bot assigned ansd May 14, 2024
@michaelklishin michaelklishin added this to the 3.13.3 milestone May 14, 2024
@ansd ansd merged commit 4a3a954 into v3.13.x May 14, 2024
18 checks passed
@ansd ansd deleted the mergify/bp/v3.13.x/pr-11230 branch May 14, 2024 15:35
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.

2 participants