You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/09/10 19:29:10 UTC

[GitHub] [pulsar-client-go] 9ft commented on issue #615: Consume retry not work on specified-partition topic

9ft commented on issue #615:
URL: https://github.com/apache/pulsar-client-go/issues/615#issuecomment-917157047


   @cckellogg Subscribe specified-partition topic for example persistent://public/default/mytopic-partition-0 will cause the problem.
   
   ```go
   rlqConsumer, err := client.Subscribe(ConsumerOptions{
   	Topic:                       "persistent://public/default/mytopic-partition-0",
   	SubscriptionName:            "sub01",
   	Type:                        Shared,
   	SubscriptionInitialPosition: SubscriptionPositionEarliest,
   	DLQ:                         &DLQPolicy{MaxDeliveries: 2},
   	RetryEnable:                 true,
   	NackRedeliveryDelay:         1 * time.Second,
   })
   ```
   
   


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org