Skip to content

Commit

Permalink
Fix ClassCastException when scheduling to look up (#1280)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yimiun authored Mar 14, 2024
1 parent 88d81d7 commit 5e4237c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import org.apache.pulsar.client.impl.PulsarClientImpl;
import org.apache.pulsar.client.impl.conf.ClientConfigurationData;
import org.apache.pulsar.client.util.ExecutorProvider;
import org.apache.pulsar.client.util.ScheduledExecutorProvider;
import org.apache.pulsar.common.naming.TopicName;
import org.apache.pulsar.common.util.FutureUtil;
import org.apache.pulsar.metadata.api.MetadataCache;
Expand All @@ -58,7 +59,8 @@ public class PulsarServiceLookupHandler implements LookupHandler {
public PulsarServiceLookupHandler(PulsarService pulsarService, MQTTProxyConfiguration proxyConfig) {
this.pulsarService = pulsarService;
this.proxyConfig = proxyConfig;
this.executorProvider = new ExecutorProvider(proxyConfig.getLookupThreadPoolNum(), "mop-lookup-thread");
this.executorProvider = new ScheduledExecutorProvider(proxyConfig.getLookupThreadPoolNum(),
"mop-lookup-thread");
this.localBrokerDataCache = pulsarService
.getLocalMetadataStore().getMetadataCache(LocalBrokerData.class);
this.pulsarClient = getClient(proxyConfig);
Expand Down

0 comments on commit 5e4237c

Please sign in to comment.