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

[Pulsar IO] Allow routing key per message to RabbitMQ sink connector #5890

Merged
merged 2 commits into from
May 19, 2020

Conversation

alex-rufo
Copy link

Motivation

With the current RabbitMQ sink connector, all messages are forwarded to an exchange with the same routing key (specified in the configuration). It would be great to give a bit more flexibility and allow the use of different routing keys for different messages on the same topic.

Modifications

The creation of the queue has been removed from the sink, all messages will be forwarded to the exchange and each consumer will create it's on queue + binding.

The configuration has been modified to reflect those changes: added the exchange type and queue name is just required for the source connector.

@alex-rufo alex-rufo changed the title Allow routing key per message to RabbitMQ sink connector [Pulsar IO] Allow routing key per message to RabbitMQ sink connector Dec 18, 2019
@tuteng tuteng added area/connector type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages labels Dec 19, 2019
@tuteng tuteng added this to the 2.6.0 milestone Dec 19, 2019
@tuteng
Copy link
Member

tuteng commented Dec 23, 2019

run cpp tests
run java8 tests

@tuteng
Copy link
Member

tuteng commented Dec 23, 2019

run cpp tests

@tuteng
Copy link
Member

tuteng commented Dec 23, 2019

LGTM
If you have time, can you consider adding an integration test?
References: #5920

@tuteng
Copy link
Member

tuteng commented Jan 13, 2020

retest this please

Copy link
Contributor

@murong00 murong00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM+1

@sijie
Copy link
Member

sijie commented Jan 13, 2020

run cpp tests
run java8 tests

@codelipenghui codelipenghui merged commit 4becb69 into apache:master May 19, 2020
nicolo-paganin pushed a commit to oncodeit/pulsar that referenced this pull request May 22, 2020
…pache#5890)

### Motivation

With the current RabbitMQ sink connector, all messages are forwarded to an exchange with the same routing key (specified in the configuration). It would be great to give a bit more flexibility and allow the use of different routing keys for different messages on the same topic.

### Modifications

The creation of the queue has been removed from the sink, all messages will be forwarded to the exchange and each consumer will create it's on queue + binding.

The configuration has been modified to reflect those changes: added the exchange type and queue name is just required for the source connector.
nicolo-paganin pushed a commit to oncodeit/pulsar that referenced this pull request May 22, 2020
…pache#5890)

### Motivation

With the current RabbitMQ sink connector, all messages are forwarded to an exchange with the same routing key (specified in the configuration). It would be great to give a bit more flexibility and allow the use of different routing keys for different messages on the same topic.

### Modifications

The creation of the queue has been removed from the sink, all messages will be forwarded to the exchange and each consumer will create it's on queue + binding.

The configuration has been modified to reflect those changes: added the exchange type and queue name is just required for the source connector.
Huanli-Meng pushed a commit to Huanli-Meng/pulsar that referenced this pull request May 27, 2020
…pache#5890)

### Motivation

With the current RabbitMQ sink connector, all messages are forwarded to an exchange with the same routing key (specified in the configuration). It would be great to give a bit more flexibility and allow the use of different routing keys for different messages on the same topic.

### Modifications

The creation of the queue has been removed from the sink, all messages will be forwarded to the exchange and each consumer will create it's on queue + binding.

The configuration has been modified to reflect those changes: added the exchange type and queue name is just required for the source connector.
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
…pache#5890)

### Motivation

With the current RabbitMQ sink connector, all messages are forwarded to an exchange with the same routing key (specified in the configuration). It would be great to give a bit more flexibility and allow the use of different routing keys for different messages on the same topic.

### Modifications

The creation of the queue has been removed from the sink, all messages will be forwarded to the exchange and each consumer will create it's on queue + binding.

The configuration has been modified to reflect those changes: added the exchange type and queue name is just required for the source connector.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connector type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants