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/09/01 15:10:25 UTC
[PR] Fix flaky ConnectionFailTest: restore fd limit in SetUp [pulsar-client-cpp]
merlimat opened a new pull request, #612:
URL: https://github.com/apache/pulsar-client-cpp/pull/612
### Motivation
`ConnectionFailTest` fails intermittently in CI, e.g. https://github.com/apache/pulsar-client-cpp/actions/runs/33217535403/job/99014404956:
```
[ RUN ] Unix/ConnectionFailTest.test/1
tests/unix/ConnectionFailTest.cc:40: Failure
Value of: res == 204 || res == 409
Actual: false
Expected: true
res: -1
```
The test lowers the process soft fd limit (`RLIMIT_NOFILE`) in a loop and never restores it, so a test leaves the limit as low as ~8 for the next one (the failing run's `test/0` ended with `Updated fd limit to 8`). The next test's `SetUp()` then makes an HTTP request to create the partitioned topic, and curl can intermittently fail to open a socket (`res: -1`) when the previous client's async connection teardown still holds file descriptors. Since `run-unit-tests.sh` runs this suite with `--gtest_repeat=20` and no retry, a single flake fails the job.
### Modifications
Restore the soft fd limit to the hard limit in `SetUp()` before making the HTTP request.
--
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 flaky ConnectionFailTest: restore fd limit in SetUp [pulsar-client-cpp]
Posted by "merlimat (via GitHub)" <gi...@apache.org>.
merlimat merged PR #612:
URL: https://github.com/apache/pulsar-client-cpp/pull/612
--
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