Demogorgon314 opened a new pull request, #16714: URL: https://github.com/apache/pulsar/pull/16714
Fixes #16705 ### Motivation When the `getBundleWithHighestThroughput ` method try to use `((ModularLoadManagerWrapper)loadManager).getLoadManager().getBundleDataOrDefault(bundle.toString());` get the bundle load data, the load data might already updated by load manager. https://github.com/apache/pulsar/blob/4483df2b3d113bfb55a8bb1a9e6c77160257c475/pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/ModularLoadManagerImpl.java#L1109-L1119 Also, we should give the `bundleWithHighestThroughput` a default value, since is possible to return a null value. ### Modifications * Disable the `writeResourceQuotasToZooKeeper` task by set load balancer enabled false. ### Documentation Check the box below or label this PR directly. Need to update docs? - [ ] `doc-required` (Your PR needs to update docs and you will update later) - [x] `doc-not-needed` (Please explain why) - [ ] `doc` (Your PR contains doc changes) - [ ] `doc-complete` (Docs have been already added) -- 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]
