merlimat opened a new pull request, #25640: URL: https://github.com/apache/pulsar/pull/25640
## Summary `IsolatedBookieEnsemblePlacementPolicy.initialize()` triggers a fire-and-forget cache load on `bookieMappingCache`. The test calls `getExcludedBookiesWithIsolationGroups` immediately after, sees `cachedRackConfiguration == null`, and gets back an empty set instead of the expected 2 excluded bookies. Apply the same Awaitility wait pattern used in [#25473](https://github.com/apache/pulsar/pull/25473) for `testBookieInfoChange`: after `onClusterChanged()`, wait for the cache to be populated before asserting. ## Test plan - [x] Five consecutive local runs pass - [ ] CI is green -- 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]
