gnodet opened a new pull request, #22142:
URL: https://github.com/apache/camel/pull/22142

   ## Summary
   
   - **JMXRobustRemoteConnectionTest**: Fix TOCTOU port race by using 
`@RegisterExtension` with `AvailablePortFinder.Port`, add proper RMI registry 
cleanup via `UnicastRemoteObject.unexportObject()` to prevent ObjID conflicts, 
and add null-safe `connector.stop()` check
   - **AbstractLRATestSupport**: Fix TOCTOU port race by using 
`AvailablePortFinder.find()` instead of `getNextAvailable()`, keeping the 
`Port` reference alive to prevent port reuse
   
   Both tests were identified as flaky in CI (PR #22128 failure).
   
   ## Test plan
   
   - [x] Both modules compile successfully
   - [ ] CI passes for `camel-jmx` and `camel-lra` modules


-- 
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]

Reply via email to