thomas-bousquet opened a new pull request, #1417:
URL: https://github.com/apache/pulsar-client-go/pull/1417
### Motivation
When the retry mechanism is enabled, the RLQ producer first sends messages
to the RLQ topic using the producer name if passed in the producer options
inside the `DLQPolicy`.
However, when the delivery count is reached and the consumer `Nack()` the
message, **the DLQ producer sending messages to the DLQ uses RLQ producer
name.**
This is an issue, especially for message deduplication process where each
producers must have a globally unique name for a given topic.
### Modifications
This PR adds the `DeadLetterTopicProducerName` field to the `DLQPolicy` in
order to allow either a custom producer name or let the broker create the
producer name (ex: `pulsar-1-1`)
### Verifying this change
- Added integration tests
`TestWithoutDeadLetterTopicDeadLetterTopicProducerName`
- Added integration tests
`TestWithDeadLetterTopicDeadLetterTopicProducerName`
### Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): no
- The public API: no
- The schema: no
- The default values of configurations: no
- The wire protocol: no
### Documentation
- Does this pull request introduce a new feature? no
- The `DeadLetterTopicProducerName` field added is documented where it's
defined in the `DLQPolicy` struct
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]