[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.
It seems the param utilChecker is useless.
There was a problem hiding this comment.
That was left over from the previous solution and I forgot to delete it. Already deleted, Thanks
|
@poorbarcode Please provide a correct documentation label for your PR. |
Technoboy-
left a comment
There was a problem hiding this comment.
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