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 (apache#23142)

(cherry picked from commit 9bf714f)
(cherry picked from commit 4235a53)
  • Loading branch information
hanmz authored and srinath-ctds committed Aug 20, 2024
1 parent e16a0e2 commit b3d47d2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3771,8 +3771,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 b3d47d2

Please sign in to comment.