Skip to content

fix select broker is none - #16316

Merged
merlimat merged 2 commits into
apache:masterfrom
lordcheng10:fix_select_broker
Jul 1, 2022
Merged

fix select broker is none#16316
merlimat merged 2 commits into
apache:masterfrom
lordcheng10:fix_select_broker

Conversation

@lordcheng10

@lordcheng10 lordcheng10 commented Jul 1, 2022

Copy link
Copy Markdown
Contributor

Motivation

In selectBrokerForAssignment, when the broker is selected again, it is not judged whether the selected broker is empty.

Documentation

Check the box below or label this PR directly.

Need to update docs?

  • doc-required
    (Your PR needs to update docs and you will update later)

  • doc-not-needed
    (Please explain why)

  • doc
    (Your PR contains doc changes)

  • doc-complete
    (Docs have been already added)

@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Jul 1, 2022
getAvailableBrokers(),
brokerTopicLoadingPredicate);
broker = placementStrategy.selectBroker(brokerCandidateCache, data, loadData, conf);
Optional<String> brokerTmp = placementStrategy.selectBroker(brokerCandidateCache, data, loadData, conf);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

src/main/java/org/apache/pulsar/broker/loadbalance/impl/ModularLoadManagerImpl.java:[881] (sizes) LineLength: Line is longer than 120 characters (found 124).
Please fix checkstyle violation

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@lordcheng10

Copy link
Copy Markdown
Contributor Author

/pulsarbot run-failure-checks

@heesung-sohn

Copy link
Copy Markdown
Contributor

LGTM

@merlimat
merlimat merged commit cf4fe17 into apache:master Jul 1, 2022
mattisonchao pushed a commit that referenced this pull request Jul 2, 2022
* fix select broker is none

* check style

(cherry picked from commit cf4fe17)
@mattisonchao mattisonchao added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Jul 2, 2022
Nicklee007 pushed a commit to Nicklee007/pulsar that referenced this pull request Jul 5, 2022
* fix select broker is none

* check style
codelipenghui pushed a commit that referenced this pull request Jul 10, 2022
* fix select broker is none

* check style

(cherry picked from commit cf4fe17)
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Jul 11, 2022
* fix select broker is none

* check style

(cherry picked from commit cf4fe17)
(cherry picked from commit cd69072)
wuxuanqicn pushed a commit to wuxuanqicn/pulsar that referenced this pull request Jul 14, 2022
* fix select broker is none

* check style
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants