Skip to content

Commit

Permalink
[fix][broker] Fix 'Disabled replicated subscriptions controller' logi…
Browse files Browse the repository at this point in the history
…c and logging (#23142)
  • Loading branch information
hanmz committed Aug 13, 2024
1 parent 66cc754 commit 9bf714f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4103,8 +4103,8 @@ private synchronized void checkReplicatedSubscriptionControllerState(boolean sho
log.info("[{}] Enabling replicated subscriptions controller", topic);
replicatedSubscriptionsController = Optional.of(new ReplicatedSubscriptionsController(this,
brokerService.pulsar().getConfiguration().getClusterName()));
} else if (isCurrentlyEnabled && !shouldBeEnabled || !isEnableReplicatedSubscriptions
|| !replicationEnabled) {
} else if (isCurrentlyEnabled && (!shouldBeEnabled || !isEnableReplicatedSubscriptions
|| !replicationEnabled)) {
log.info("[{}] Disabled replicated subscriptions controller", topic);
replicatedSubscriptionsController.ifPresent(ReplicatedSubscriptionsController::close);
replicatedSubscriptionsController = Optional.empty();
Expand Down

0 comments on commit 9bf714f

Please sign in to comment.