You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "merlimat (via GitHub)" <gi...@apache.org> on 2026/05/01 01:25:19 UTC

[PR] [fix][test] Make NamespacesTest.cleanupAfterMethod tolerant of transient infra failures [pulsar]

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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [fix][test] Make NamespacesTest.cleanupAfterMethod tolerant of transient infra failures [pulsar]

Posted by "lhotari (via GitHub)" <gi...@apache.org>.
lhotari merged PR #25641:
URL: https://github.com/apache/pulsar/pull/25641


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org