srouthu1 opened a new issue #11652:
URL: https://github.com/apache/pulsar/issues/11652
#### Expected behavior
I have created consumer with the following code.
Consumer consumer = client.newConsumer()
.topic("persistent://mytenant/myns/mytopic")
.subscriptionName(userName+"-default")
.subscriptionType(SubscriptionType.Key_Shared).keySharedPolicy(KeySharedPolicy.autoSplitHashRange())
.receiverQueueSize(10)
.deadLetterPolicy(DeadLetterPolicy.builder()
.maxRedeliverCount(3)
.deadLetterTopic("persistent://mytenant/myns/mytopic-userName-default.DLQ")
.build())
.ackTimeout(40,TimeUnit.SECONDS)
.subscribe();
My my publisher sends messages with different keys.
My consumer receives the messages but it does not acknowledge the message
because I want the messages to be moved to dead letter topic.
I am expecting the messages to redelivered to my consumer 3 times and then
they should be published to dead letter topic.
#### Actual behavior
The messages are getting redelivered to my consumer unlimited times. They
never moved to dead letter topic.
If I change the subscription type to shared then the messages are moving to
dead letter topic.
#### System configuration
Pulsar version: Tried with both 2.6.0 and 2.8.0
Pulsar Client: 2.6.0
--
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]