oneby-wang opened a new pull request, #25949: URL: https://github.com/apache/pulsar/pull/25949
Fixes apache/pulsar#24337 ### Motivation `SaslAuthenticateTest.testSaslOnlyAuthFirstStage` currently verifies two timing-sensitive behaviors in one test: that first-stage SASL authentication leaves inflight contexts in the cache, and that residual contexts are later expired. The exact cache-size assertion can become flaky when entries expire before the assertion is reached. ### Modifications Added two focused tests for the separate behaviors: - `testSaslOnlyAuthFirstStageKeepsInflightContextsBeforeExpiry` verifies that first-stage SASL authentication keeps inflight contexts when the expiry timeout is long enough. - `testSaslOnlyAuthFirstStageExpiresResidualContexts` verifies that residual first-stage contexts expire and are removed after cleanup. ### Verifying this change - [x] Make sure that the change passes the CI checks. ### Does this pull request potentially affect one of the following parts: <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. --> *If the box was checked, please highlight the changes* - [ ] Dependencies (add or upgrade a dependency) - [ ] The public API - [ ] The schema - [ ] The default values of configurations - [ ] The threading model - [ ] The binary protocol - [ ] The REST endpoints - [ ] The admin CLI options - [ ] The metrics - [ ] Anything that affects deployment -- 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]
