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

[improve][broker] Reduce the duplicated null check for LeaderElectionService #22465

Conversation

BewareMyPower
Copy link
Contributor

Motivation

#8101 adds the null check for LeaderElectionService in searchForCandidateBroker to avoid a null leader election service is accessed because the broker service starts before the leader election service. However, #8273 adds the null check again.

Modifications

Only retain one null check.

Documentation

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

Matching PR in forked repository

PR in forked repository:

@BewareMyPower BewareMyPower added type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages area/broker labels Apr 9, 2024
@BewareMyPower BewareMyPower self-assigned this Apr 9, 2024
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Apr 9, 2024
@BewareMyPower BewareMyPower force-pushed the bewaremypower/reduce-duplicate-null-check branch from 167360d to 6a6852d Compare April 9, 2024 12:07
@Technoboy- Technoboy- closed this Apr 9, 2024
@Technoboy- Technoboy- reopened this Apr 9, 2024
@Technoboy- Technoboy- added this to the 3.3.0 milestone Apr 10, 2024
@BewareMyPower BewareMyPower merged commit dbe1a48 into apache:master Apr 12, 2024
49 of 50 checks passed
@BewareMyPower BewareMyPower deleted the bewaremypower/reduce-duplicate-null-check branch April 12, 2024 13:52
hanmz pushed a commit to hanmz/pulsar that referenced this pull request Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/broker doc-not-needed Your PR changes do not impact docs ready-to-test type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants