This is an automated email from the ASF dual-hosted git repository.
bogong pushed a commit to branch branch-2.9
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-2.9 by this push:
new 4c3e56b155a [fix][client]Fix scheduledExecutorProvider not shutdown
(#17527)
4c3e56b155a is described below
commit 4c3e56b155a612a08d6453a3d39262d89e9f0223
Author: Xiaoyu Hou <[email protected]>
AuthorDate: Tue Sep 13 15:40:25 2022 +0800
[fix][client]Fix scheduledExecutorProvider not shutdown (#17527)
* Fix scheduledExecutorProvider not shutdown
* Fix check null
(cherry picked from commit a23963dacddeaefd0846c187755c43a19779f5d1)
---
.../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 8fcec401204..ba2dcb74d5f 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
@@ -843,7 +843,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);