gaoran10 commented on code in PR #16513:
URL: https://github.com/apache/pulsar/pull/16513#discussion_r918661404


##########
pulsar-broker/src/test/java/org/apache/pulsar/client/api/DeadLetterTopicTest.java:
##########
@@ -794,4 +795,16 @@ public void 
testDeadLetterTopicWithInitialSubscriptionAndMultiConsumers() throws
         otherConsumer.close();
         consumer.close();
     }
+
+    @Test
+    public void testDeadLetterPolicyDeserialize() throws Exception {
+        ConsumerBuilder<String> consumerBuilder = 
pulsarClient.newConsumer(Schema.STRING);
+        DeadLetterPolicy policy =
+                
DeadLetterPolicy.builder().deadLetterTopic("a").retryLetterTopic("a").initialSubscriptionName("a")
+                        .maxRedeliverCount(1).build();
+        consumerBuilder.deadLetterPolicy(policy);

Review Comment:
   Maybe you need to add the `DeadLetterPolicy` in the config map?



-- 
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-unsubscr...@pulsar.apache.org

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

Reply via email to