Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix][broker] Fix 'Disabled replicated subscriptions controller' logic and logging #23142

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

hanmz
Copy link
Contributor

@hanmz hanmz commented Aug 8, 2024

Motivation

When config enableReplicatedSubscriptions=false , the replicated subscriptions controller will never be started. But we will still see the log of the Disabled replicated subscriptions controller. In fact, we should not see the log because it has never been started.

Modifications

Modify judgment conditions, only if replicatedSubscriptionsController has been started do we need to disabled it.

Documentation

Verifying this change

All unit tests passed, not have any behavior change.

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

…subscriptions controller' when isCurrentlyEnabled is equal to true.
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Aug 8, 2024
Copy link
Member

@lhotari lhotari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lhotari lhotari changed the title [improve][broker] We just need to print the log 'Disabled replicated subscriptions controller' when isCurrentlyEnabled is equal to true. [fix][broker] Fix 'Disabled replicated subscriptions controller' logic and logging Aug 12, 2024
@lhotari lhotari added this to the 3.4.0 milestone Aug 12, 2024
Copy link
Contributor

@guan46 guan46 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@guan46
Copy link
Contributor

guan46 commented Aug 12, 2024

@hanmz Please check the failed tests,thanks

@nodece nodece merged commit 9bf714f into apache:master Aug 13, 2024
58 of 59 checks passed
@nodece nodece added the type/bug The PR fixed a bug or issue reported a bug label Aug 13, 2024
nodece pushed a commit to nodece/pulsar that referenced this pull request Aug 13, 2024
nodece pushed a commit that referenced this pull request Aug 13, 2024
nodece pushed a commit that referenced this pull request Aug 13, 2024
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Aug 14, 2024
…c and logging (apache#23142)

(cherry picked from commit 9bf714f)
(cherry picked from commit 4235a53)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Aug 20, 2024
…c and logging (apache#23142)

(cherry picked from commit 9bf714f)
(cherry picked from commit 4235a53)
nodece pushed a commit to ascentstream/pulsar that referenced this pull request Aug 20, 2024
grssam pushed a commit to grssam/pulsar that referenced this pull request Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants