Skip to content

Conversation

@lordcheng10
Copy link
Contributor

@lordcheng10 lordcheng10 commented Jul 1, 2022

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
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
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
Contributor Author

/pulsarbot run-failure-checks

@heesung-sohn
Copy link
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