You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Flaky Kafka scenario: invalid subscription leaves no client running #614
features/kafka_clients_spans.feature:115 ("A sync consumer that fails with an invalid subscription leaves no client running", example @1.2) failed once in CI on PR #608, which only touched pyproject.toml and uv.lock. The rerun passed. The other 105 scenarios in the feature passed both times.
Evidence: run 44899443830, job "behave (Python 3.14, Kafka (clients and spans))". The log shows only the failing scenario name, with no assertion text.
Checklist
reproduce locally or in CI loops and capture the assertion error
fix the race or wait condition in the step or adapter, without sleep loops
Fixed in #621. Not reproduced locally or in CI loops: the cause is found by reading the code. _rdkafka_thread_count listed /proc/self/task and opened each comm file, so a librdkafka thread of an earlier scenario exiting in between raised FileNotFoundError (a step error with no assertion text). The step also compared before/after counts, which older clients shutting down could shift. The helper now collects thread ids, skips vanished threads, and counts only new ids. The scenario passed 6 of 6 runs and the whole feature passed. Reopen if the flake returns.
Activity
HosseinNejatiJavaremi commentedon Nov 21, 2026
Fixed in #621. Not reproduced locally or in CI loops: the cause is found by reading the code.
_rdkafka_thread_countlisted/proc/self/taskand opened eachcommfile, so a librdkafka thread of an earlier scenario exiting in between raisedFileNotFoundError(a step error with no assertion text). The step also compared before/after counts, which older clients shutting down could shift. The helper now collects thread ids, skips vanished threads, and counts only new ids. The scenario passed 6 of 6 runs and the whole feature passed. Reopen if the flake returns.github-actions commentedon Nov 21, 2026
Merged #621: fix(kafka): stop the no-client-left check from racing with exiting threads