Skip to content

Commit

Permalink
Skip extensible load manager's internal topics
Browse files Browse the repository at this point in the history
  • Loading branch information
BewareMyPower committed Sep 20, 2024
1 parent da288b5 commit 1231dc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1177,6 +1177,9 @@ public CompletableFuture<Optional<Topic>> getTopic(final TopicName topicName, bo
}

private CompletableFuture<Optional<TopicPolicies>> getTopicPoliciesBypassSystemTopic(@Nonnull TopicName topicName) {
if (ExtensibleLoadManagerImpl.isInternalTopic(topicName.toString())) {
return CompletableFuture.completedFuture(Optional.empty());
}
return pulsar.getTopicPoliciesService().getTopicPoliciesAsync(topicName,
TopicPoliciesService.GetType.DEFAULT);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4321,6 +4321,9 @@ private void updateSubscriptionsDispatcherRateLimiter() {
}

protected CompletableFuture<Void> initTopicPolicy() {
if (ExtensibleLoadManagerImpl.isInternalTopic(topic)) {
return CompletableFuture.completedFuture(null);
}
final var topicPoliciesService = brokerService.pulsar().getTopicPoliciesService();
final var partitionedTopicName = TopicName.getPartitionedTopicName(topic);
if (topicPoliciesService.registerListener(partitionedTopicName, this)) {
Expand Down

0 comments on commit 1231dc1

Please sign in to comment.