Skip to content

[Backport] Fix Router race condition and use default broker service name for invalid priority#5066

Merged
leventov merged 1 commit intoapache:0.11.0from
gianm:backport-5050-to-0.11.0
Nov 10, 2017
Merged

[Backport] Fix Router race condition and use default broker service name for invalid priority#5066
leventov merged 1 commit intoapache:0.11.0from
gianm:backport-5050-to-0.11.0

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented Nov 9, 2017

Backport of #5050 to 0.11.0.

…alid priority (apache#5050)

* use default brokerServiceName when priority is not valid

* use AtomicInteger for NodesHolder.roundRobinIndex

* revert inspectionProfiles change

* adjust TieredBrokerHostSelectorTest

* combine if statements and ensure index does not become negative

* set next index with mod if overflows

* fix codestyle

* use nextIndex

* extract the while loop to a method
@gianm gianm added the Backport label Nov 9, 2017
@gianm gianm added this to the 0.11.0 milestone Nov 9, 2017
@leventov leventov merged commit b7cc532 into apache:0.11.0 Nov 10, 2017
leventov pushed a commit to metamx/druid that referenced this pull request Nov 13, 2017
…alid priority (apache#5050) (apache#5066)

* use default brokerServiceName when priority is not valid

* use AtomicInteger for NodesHolder.roundRobinIndex

* revert inspectionProfiles change

* adjust TieredBrokerHostSelectorTest

* combine if statements and ensure index does not become negative

* set next index with mod if overflows

* fix codestyle

* use nextIndex

* extract the while loop to a method
@gianm gianm deleted the backport-5050-to-0.11.0 branch September 23, 2022 19:20
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.

3 participants