Skip to content

[adapters] Increase wait_for_records timeout in tests.#6614

Merged
ryzhyk merged 1 commit into
mainfrom
fix-suspend-barrier-flake
Jul 10, 2026
Merged

[adapters] Increase wait_for_records timeout in tests.#6614
ryzhyk merged 1 commit into
mainfrom
fix-suspend-barrier-flake

Conversation

@ryzhyk

@ryzhyk ryzhyk commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

suspend_barrier5 times out waiting for 4000 input records while suspending in CI. The log seems to indicate that the connector is making progress, just slowly under load. We increase the timeout from 10 to 100s and improve progress logging. If the issue occurs again, this means there's a real bug somewhere.

suspend_barrier5 times out waiting for 4000 input records while
suspending in CI. The log seems to indicate that the connector
is making progress, just slowly under load. We increase the timeout
from 10 to 100s and improve progress logging. If the issue occurs
again, this means there's a real bug somewhere.

Signed-off-by: Leonid Ryzhyk <ryzhyk@gmail.com>
@ryzhyk
ryzhyk requested a review from blp July 10, 2026 07:51
@ryzhyk
ryzhyk enabled auto-merge July 10, 2026 08:07

@mythical-fred mythical-fred left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test-only, targeted, well-commented. Splits the wait budget into two named constants (OUTPUT_TIMEOUT_MS=10s / SUSPEND_OUTPUT_TIMEOUT_MS=100s), threads a new wait_for_records_within helper into the two suspend paths that legitimately need the longer budget, and adds a tprintln! macro to timestamp progress lines so future flake diagnosis is easier. The 100s budget matches the existing suspend-completion recv_timeout in the same file — good symmetry. LGTM.

Nit (non-blocking): the docstring on SUSPEND_OUTPUT_TIMEOUT_MS explains why the longer budget is needed better than the two inline // After the first iteration a suspend is pending... comments — those two site comments now duplicate what's on the constant. Could just say // Use SUSPEND_OUTPUT_TIMEOUT_MS: suspend pending, see constant doc. No action needed.

@ryzhyk
ryzhyk added this pull request to the merge queue Jul 10, 2026
Merged via the queue into main with commit 27d31ba Jul 10, 2026
1 check passed
@ryzhyk
ryzhyk deleted the fix-suspend-barrier-flake branch July 10, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants