Skip to content

Commit

Permalink
Use OrderedExecutor instead of OrderedScheduler for consumer dispatch (
Browse files Browse the repository at this point in the history
  • Loading branch information
merlimat authored Jun 19, 2022
1 parent e90671b commit 04e6e6a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
import lombok.Getter;
import lombok.Setter;
import org.apache.bookkeeper.common.util.OrderedExecutor;
import org.apache.bookkeeper.common.util.OrderedScheduler;
import org.apache.bookkeeper.mledger.AsyncCallbacks.DeleteLedgerCallback;
import org.apache.bookkeeper.mledger.AsyncCallbacks.OpenLedgerCallback;
import org.apache.bookkeeper.mledger.LedgerOffloader;
Expand Down Expand Up @@ -308,7 +307,7 @@ public BrokerService(PulsarService pulsar, EventLoopGroup eventLoopGroup) throws
ConcurrentOpenHashMap.<TopicName,
PersistentOfflineTopicStats>newBuilder().build();

this.topicOrderedExecutor = OrderedScheduler.newSchedulerBuilder()
this.topicOrderedExecutor = OrderedExecutor.newBuilder()
.numThreads(pulsar.getConfiguration().getNumWorkerThreadsForNonPersistentTopic())
.name("broker-topic-workers").build();
final DefaultThreadFactory acceptorThreadFactory = new DefaultThreadFactory("pulsar-acceptor");
Expand Down

0 comments on commit 04e6e6a

Please sign in to comment.