-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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] Fix ModularLoadManagerImpl always delete active bundle-data. sec ver. #20620
Merged
aloyszhang
merged 23 commits into
apache:master
from
lifepuzzlefun:fix_clean_up_bundle_data_logic_second_try
Aug 21, 2023
Merged
Changes from 22 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
6f1311b
fix wrong delete load-balance bundle data logic.
lifepuzzlefun a081ef9
fix unit test.
lifepuzzlefun d044f6b
fix unit test.
lifepuzzlefun c584115
fix check style.
lifepuzzlefun 2997290
fix check style.
lifepuzzlefun 0cc0e97
fix check style.
lifepuzzlefun 279d4dc
fix check style.
lifepuzzlefun f7d6b82
fix checkstyle
lifepuzzlefun e251ded
fix checkstyle
lifepuzzlefun 3eb264a
change code to scan namespace style.
lifepuzzlefun da85382
Revert "fix checkstyle"
lifepuzzlefun 436f398
avoid remove origin unit test.
lifepuzzlefun 46ee3da
fix logic to trigger namespace bundle cache miss-load.
lifepuzzlefun 32bbbde
fix check style
lifepuzzlefun 635a09c
fix code review comment add more detail log
lifepuzzlefun1 5934bd1
another way
lifepuzzlefun e46f9d9
another way
lifepuzzlefun dac2aa8
another way
lifepuzzlefun 1eb5d03
another way
lifepuzzlefun 1341f16
revery isLeader
lifepuzzlefun 426c04d
revery isLeader
lifepuzzlefun 14c243e
fix unit test
lifepuzzlefun b5ccc08
Merge branch 'master' into fix_clean_up_bundle_data_logic_second_try
lifepuzzlefun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain why this reordering can resolve the issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.
If we need to figure out which bundle is not active, we should get cluster wide all bundle data, right ? To get all cluster wide bundle data, we need iterate all brokerData to collect this.
Current we only iterate the first brokerData and check active bundles. so the all the bundleData which is not owned by the first broker will be cleaned at the first broker check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, maybe I missed some logic here.
But, In this func, I don't see
bundleData
andactiveBundles
are updated between these lines. https://github.com/apache/pulsar/pull/20620/files#diff-642d3e26ddad51db8fb736b0f5519f4c929814a4f69d85e16829d19b885be0ebR562-R594 .So, I am curious to know how this reordering can be effective.
Can you provide the code lines which iterate all brokerData and fill
activeBundles
andbundleData
, other than here?https://github.com/apache/pulsar/pull/20620/files#diff-642d3e26ddad51db8fb736b0f5519f4c929814a4f69d85e16829d19b885be0ebR549-R558