-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix][flaky-test]NamespaceServiceTest.flaky/testModularLoadManagerRemoveBundleAndLoad #17487
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][flaky-test]NamespaceServiceTest.flaky/testModularLoadManagerRemoveBundleAndLoad #17487
Conversation
|
This PR should merge into these branches (because this test was appended in branch-2.11):
|
|
@heesung-sn Please help review this PR, thanks. |
| } | ||
|
|
||
| private void waitResourceDataUpdateToZK( | ||
| LoadManager loadManager, Predicate<LoadData> utilChecker) throws Exception { |
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.
It seems the param utilChecker is useless.
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.
That was left over from the previous solution and I forgot to delete it. Already deleted, Thanks
gaoran10
left a comment
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.
Great work! LGTM
Demogorgon314
left a comment
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.
LGTM.
|
@poorbarcode Please provide a correct documentation label for your PR. |
Technoboy-
left a comment
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.
Better to add some comments for line 809~814
|
Hi @Technoboy-
Already add code-comment, thanks |
|
/pulsarbot rerun-failure-checks |
2 similar comments
|
/pulsarbot rerun-failure-checks |
|
/pulsarbot rerun-failure-checks |
|
LGTM |
We don't have the |
…oveBundleAndLoad (apache#17487) (cherry picked from commit 5c67ded) (cherry picked from commit 44c033c)
Fixes #17386
Motivation
In this test, we expect it works like this:
But the flow works like this:
2-x. receive notice: broker data changes, and refresh bundle data in memory
2-x. persistent bundle data to ZK ( If the data in memory is not updated, it will not be written to ZK )
Modifications
step-3is always executed afterstep-2ModularLoadManagerWrapperto makeisCentralizedalways returntrue. But this mock is completely unnecessary because that'sModularLoadManagerWrapper.isCentralizedwas exactly always returnedtrue, so remove the mock.Documentation
doc-requireddoc-not-neededdocdoc-complete