merlimat opened a new pull request, #25641: URL: https://github.com/apache/pulsar/pull/25641
## Summary The `@AfterMethod` cleanup calls `admin.namespaces().getNamespaces(tenant)`. Under load (long-running test method, GC pause) the broker's ZK session can expire and that call returns a 500. The actual test method had already passed at that point, so masking the result with a cleanup exception isn't useful. Wrap the cleanup in try/catch + warn-log. Subsequent test methods either recover (ZK reconnects) or fail-fast with a clearer error than a session-expired stack trace from a teardown hook. ## Test plan - [x] `testCreateNamespaces` passes locally with the change applied - [ ] 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]
