Skip to content

[fix] [broker] Fix nothing changed after removing dynamic configs#22673

Merged
poorbarcode merged 3 commits into
apache:masterfrom
poorbarcode:fix/remove_dynamic_config
May 8, 2024
Merged

[fix] [broker] Fix nothing changed after removing dynamic configs#22673
poorbarcode merged 3 commits into
apache:masterfrom
poorbarcode:fix/remove_dynamic_config

Conversation

@poorbarcode

Copy link
Copy Markdown
Contributor

Motivation

Background

  • Broker registers listeners to monitor the config change events
  • After calling admin updateDynamicConfiguration, the configuration in memory will be changed and the listeners will receive an event.

Issue
After calling admin deleteDynamicConfiguration, the configuration in memory will not change and the listeners will receive nothing.

Modifications

When calling admin deleteDynamicConfiguration

  • revert the config to the default value
  • trigger an event for the listeners

Documentation

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

Matching PR in forked repository

PR in forked repository: x

@poorbarcode poorbarcode added this to the 3.4.0 milestone May 8, 2024
@poorbarcode poorbarcode self-assigned this May 8, 2024
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label May 8, 2024
@poorbarcode poorbarcode changed the title [fix] [broker] Fix nothing happend after remove a dynamic config [fix] [broker] Fix nothing changed after removing dynamic configs May 8, 2024

@lhotari lhotari left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@poorbarcode

Copy link
Copy Markdown
Contributor Author

/pulsarbot rerun-failure-checks

Comment thread pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java Outdated

@dao-jun dao-jun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@poorbarcode poorbarcode merged commit ada31a9 into apache:master May 8, 2024
@poorbarcode poorbarcode deleted the fix/remove_dynamic_config branch May 8, 2024 13:46
poorbarcode added a commit that referenced this pull request May 8, 2024
poorbarcode added a commit that referenced this pull request May 8, 2024
poorbarcode added a commit that referenced this pull request May 8, 2024
poorbarcode added a commit that referenced this pull request May 8, 2024
poorbarcode added a commit that referenced this pull request May 9, 2024
nodece pushed a commit to ascentstream/pulsar that referenced this pull request May 13, 2024
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request May 13, 2024
nodece pushed a commit to ascentstream/pulsar that referenced this pull request May 15, 2024
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request May 16, 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