gaoran10 commented on code in PR #17487:
URL: https://github.com/apache/pulsar/pull/17487#discussion_r963625079
##########
pulsar-broker/src/test/java/org/apache/pulsar/broker/namespace/NamespaceServiceTest.java:
##########
@@ -792,12 +794,46 @@ public void testModularLoadManagerRemoveBundleAndLoad()
throws Exception {
TimeUnit.SECONDS.sleep(5);
// update broker bundle report to zk
- loadManager.writeLoadReportOnZookeeper();
- loadManager.writeResourceQuotasToZooKeeper();
+ waitResourceDataUpdateToZK(loadManager,
+ loadData -> !loadData.getBundleData().containsKey(bundleName));
getResult = pulsar.getLocalMetadataStore().get(path).get();
assertFalse(getResult.isPresent());
+ }
+ private void waitResourceDataUpdateToZK(
+ LoadManager loadManager, Predicate<LoadData> utilChecker) throws
Exception {
Review Comment:
It seems the param `utilChecker` is useless.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]