gnodet opened a new pull request, #22983: URL: https://github.com/apache/camel/pull/22983
[CAMEL-23216](https://issues.apache.org/jira/browse/CAMEL-23216) ## Summary Several mina-sftp integration tests were flaky due to SSH connection/authentication timeouts under CI load. The root causes: 1. **No server readiness check** — the embedded SFTP server restarted per test but tests could attempt connections before the server was fully accepting them 2. **Too-tight `@Timeout(30)`** — tests making multiple sequential SFTP connections (each with 10s default `connectTimeout` + 10s auth timeout) could easily exceed the 30-second JUnit timeout, causing thread interruption that propagated as `InterruptedIOException` in the SSH library ## Changes - **Add server readiness probe** in `SftpEmbeddedInfraService.setUpServer()` — after starting the embedded SSHD server, verify it accepts TCP connections before returning. This eliminates cold-start race conditions. - **Increase `@Timeout` from 30s to 60s** across all mina-sftp integration tests (7 test classes), aligned with `MinaSftpProtocolIT` which already used 60s/120s for similar operations. ## Test plan - [x] All 26 previously-flaky tests pass (MinaSftpAdvancedFileOperationsIT + MinaSftpAuthenticationIT) - [x] Full mina-sftp integration test suite passes (249 tests, 0 failures) -- 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]
