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] Asynchronously return brokerRegistry.lookupAsync when checking if broker is active(ExtensibleLoadManagerImpl only) #22899

Merged

Conversation

heesung-sn
Copy link
Contributor

Motivation

  • The broker could falsely return that brokers were inactive too soon if the broker registry cache was empty.

Modifications

  • Asynchronously return brokerRegistry.lookupAsync instead of using future.getNow.

Verifying this change

  • Make sure that the change passes the CI checks.

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Documentation

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

Matching PR in forked repository

PR in forked repository:

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jun 12, 2024
@heesung-sn heesung-sn self-assigned this Jun 12, 2024
Copy link
Member

@Demogorgon314 Demogorgon314 left a comment

Choose a reason for hiding this comment

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

LGTM.

@heesung-sn heesung-sn closed this Jun 13, 2024
@heesung-sn heesung-sn reopened this Jun 13, 2024
@heesung-sn heesung-sn merged commit c2702e9 into apache:master Jun 13, 2024
67 of 74 checks passed
heesung-sn added a commit to heesung-sn/pulsar that referenced this pull request Jun 26, 2024
…hecking if broker is active(ExtensibleLoadManagerImpl only) (apache#22899)

(cherry picked from commit c2702e9)
heesung-sn added a commit to heesung-sn/pulsar that referenced this pull request Jun 26, 2024
…hecking if broker is active(ExtensibleLoadManagerImpl only) (apache#22899)

(cherry picked from commit c2702e9)
heesung-sn added a commit to heesung-sn/pulsar that referenced this pull request Jun 26, 2024
…hecking if broker is active(ExtensibleLoadManagerImpl only) (apache#22899)

(cherry picked from commit c2702e9)
(cherry picked from commit 2cf6e51)
heesung-sn added a commit to heesung-sn/pulsar that referenced this pull request Jun 26, 2024
…hecking if broker is active(ExtensibleLoadManagerImpl only) (apache#22899)

(cherry picked from commit c2702e9)
heesung-sn added a commit to heesung-sn/pulsar that referenced this pull request Jun 26, 2024
…hecking if broker is active(ExtensibleLoadManagerImpl only) (apache#22899)

(cherry picked from commit c2702e9)
heesung-sn added a commit to heesung-sn/pulsar that referenced this pull request Jun 26, 2024
…hecking if broker is active(ExtensibleLoadManagerImpl only) (apache#22899)

(cherry picked from commit c2702e9)
heesung-sn added a commit to heesung-sn/pulsar that referenced this pull request Jun 26, 2024
…hecking if broker is active(ExtensibleLoadManagerImpl only) (apache#22899)

(cherry picked from commit c2702e9)
(cherry picked from commit 2cf6e51)
heesung-sn added a commit to heesung-sn/pulsar that referenced this pull request Jun 27, 2024
…hecking if broker is active(ExtensibleLoadManagerImpl only) (apache#22899)

(cherry picked from commit c2702e9)
(cherry picked from commit 2cf6e51)
@heesung-sn heesung-sn added this to the 3.4.0 milestone Jun 27, 2024
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Jun 27, 2024
…hecking if broker is active(ExtensibleLoadManagerImpl only) (apache#22899)

(cherry picked from commit c2702e9)
(cherry picked from commit 2cf6e51)
(cherry picked from commit 9ab3f38)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Jul 1, 2024
…hecking if broker is active(ExtensibleLoadManagerImpl only) (apache#22899)

(cherry picked from commit c2702e9)
(cherry picked from commit 2cf6e51)
(cherry picked from commit 9ab3f38)
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.

2 participants