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 2022/02/15 12:58:09 UTC

[GitHub] [pulsar] leizhiyuan commented on a change in pull request #14287: [pulsar-client] fix: close dead producer and retry producer

leizhiyuan commented on a change in pull request #14287:
URL: https://github.com/apache/pulsar/pull/14287#discussion_r806803408



##########
File path: pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java
##########
@@ -1008,6 +1008,20 @@ public void connectionFailed(PulsarClientException exception) {
 
         closeConsumerTasks();
 
+        if (this.deadLetterProducer != null) {
+            try {
+                deadLetterProducer.get().closeAsync();

Review comment:
       please review again




-- 
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