You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ni...@apache.org on 2022/09/13 07:40:34 UTC

[pulsar] branch master updated: [fix][client]Fix scheduledExecutorProvider not shutdown (#17527)

This is an automated email from the ASF dual-hosted git repository.

nicoloboschi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new a23963dacdd [fix][client]Fix scheduledExecutorProvider not shutdown (#17527)
a23963dacdd is described below

commit a23963dacddeaefd0846c187755c43a19779f5d1
Author: Xiaoyu Hou <ho...@apache.org>
AuthorDate: Tue Sep 13 15:40:25 2022 +0800

    [fix][client]Fix scheduledExecutorProvider not shutdown (#17527)
    
    * Fix scheduledExecutorProvider not shutdown
    
    * Fix check null
---
 .../src/main/java/org/apache/pulsar/client/impl/PulsarClientImpl.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/PulsarClientImpl.java b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/PulsarClientImpl.java
index 3924e5fbc22..b0e78273dc6 100644
--- a/pulsar-client/src/main/java/org/apache/pulsar/client/impl/PulsarClientImpl.java
+++ b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/PulsarClientImpl.java
@@ -894,7 +894,7 @@ public class PulsarClientImpl implements PulsarClient {
         }
         if (createdScheduledProviders && scheduledExecutorProvider != null && !scheduledExecutorProvider.isShutdown()) {
             try {
-                externalExecutorProvider.shutdownNow();
+                scheduledExecutorProvider.shutdownNow();
             } catch (Throwable t) {
                 log.warn("Failed to shutdown scheduledExecutorProvider", t);
                 pulsarClientException = PulsarClientException.unwrap(t);