You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by te...@apache.org on 2023/04/21 01:38:03 UTC

[pulsar] branch branch-2.10 updated: [fix] Use scheduled executor in BinaryProtoLookupService (#20043)

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

technoboy pushed a commit to branch branch-2.10
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/branch-2.10 by this push:
     new bdd70e59a75 [fix] Use scheduled executor in BinaryProtoLookupService (#20043)
bdd70e59a75 is described below

commit bdd70e59a75a41ae838818337524f7129a601180
Author: Mathieu Grenonville <mg...@users.noreply.github.com>
AuthorDate: Tue Apr 11 04:52:11 2023 +0200

    [fix] Use scheduled executor in BinaryProtoLookupService (#20043)
    
    Motivation: PulsarClient using ExecutorService as ScheduledExecutorService
    
    Modifications: Use exactly ScheduledExecutorService
---
 .../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 a47fdefb182..a2e63c2cdc6 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
@@ -199,7 +199,7 @@ public class PulsarClientImpl implements PulsarClient {
                 lookup = new HttpLookupService(conf, this.eventLoopGroup);
             } else {
                 lookup = new BinaryProtoLookupService(this, conf.getServiceUrl(), conf.getListenerName(),
-                        conf.isUseTls(), this.externalExecutorProvider.getExecutor());
+                        conf.isUseTls(), this.scheduledExecutorProvider.getExecutor());
             }
             if (timer == null) {
                 this.timer = new HashedWheelTimer(getThreadFactory("pulsar-timer"), 1, TimeUnit.MILLISECONDS);