[fix][broker] rackaware policy is ineffective when delete zk rack info after bkclient initialize#20944
Merged
codelipenghui merged 1 commit intoapache:masterfrom Oct 7, 2023
Conversation
Contributor
Author
|
The pr had no activity for 30 days, mark with Stale label. |
e60964b to
8930c21
Compare
hangc0276
approved these changes
Sep 20, 2023
Member
|
/pulsarbot run-failure-checks |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #20944 +/- ##
=============================================
- Coverage 72.97% 36.80% -36.18%
+ Complexity 32157 374 -31783
=============================================
Files 1868 1698 -170
Lines 139164 130430 -8734
Branches 15314 14250 -1064
=============================================
- Hits 101555 47999 -53556
- Misses 29562 76104 +46542
+ Partials 8047 6327 -1720
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
poorbarcode
approved these changes
Sep 20, 2023
codelipenghui
approved these changes
Oct 7, 2023
liangyuanpeng
pushed a commit
to liangyuanpeng/pulsar
that referenced
this pull request
Oct 11, 2023
…o after bkclient initialize (apache#20944)
vinayakmalik95
pushed a commit
to tmdc-io/pulsar
that referenced
this pull request
Oct 12, 2023
…o after bkclient initialize (apache#20944)
Technoboy-
pushed a commit
that referenced
this pull request
Oct 19, 2023
…o after bkclient initialize (#20944)
shibd
pushed a commit
to shibd/pulsar
that referenced
this pull request
Oct 22, 2023
…o after bkclient initialize (apache#20944) (cherry picked from commit d9ebaf5)
shibd
pushed a commit
to shibd/pulsar
that referenced
this pull request
Oct 24, 2023
…o after bkclient initialize (apache#20944) (cherry picked from commit d9ebaf5)
14 tasks
nikhil-ctds
pushed a commit
to datastax/pulsar
that referenced
this pull request
Dec 20, 2023
…o after bkclient initialize (apache#20944)
srinath-ctds
pushed a commit
to datastax/pulsar
that referenced
this pull request
Dec 20, 2023
…o after bkclient initialize (apache#20944)
3 tasks
nodece
pushed a commit
to nodece/pulsar
that referenced
this pull request
Aug 15, 2024
…o after bkclient initialize (apache#20944) (cherry picked from commit d9ebaf5)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
#14248 fix rackaware placement policy does not take effect after delete rack configuration. But after #16825, this fix is ineffective when delete zk rack info after bkclient initialize.
The reason is "register available bookie" is after "BookieRackAffinityMapping#setConf" in bookieClient constructor. So updateRacksWithHost(racksWithHost) would throw BookieIdNotResolvedException, make "racksWithHost" become null. "racksWithHost" is updated until "watchAvailableBookies()" listener is trigger.
I add some log of unittest testRackUpdate() to show the order of bookieClient constructor:
Modifications
Verifying this change
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: TakaHiR07#12