Skip to content

fix(connectors): increase poll budget in fetch_rows_as to fix flaky restart test#3106

Open
atharvalade wants to merge 5 commits intoapache:masterfrom
atharvalade:fix/flaky-postgres-restart-test
Open

fix(connectors): increase poll budget in fetch_rows_as to fix flaky restart test#3106
atharvalade wants to merge 5 commits intoapache:masterfrom
atharvalade:fix/flaky-postgres-restart-test

Conversation

@atharvalade
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #3105

Rationale

restart_sink_connector_continues_processing is flaky in CI due to an insufficient polling budget in fetch_rows_as.

What changed?

fetch_rows_as used DEFAULT_POLL_INTERVAL_MS / 5 (10ms) per attempt, giving it a total polling budget of ~1s — far shorter than the ~5s budget of every other polling helper (wait_for_sink_status, wait_for_table). On loaded CI runners the postgres sink connector cannot always finish processing within 1s after a restart.

Changed to use the full DEFAULT_POLL_INTERVAL_MS (50ms), matching the other helpers. The function still returns immediately once the expected row count is reached, so passing tests are not slowed down.

Local Execution

  • Passed
  • Pre-commit hooks ran

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.33%. Comparing base (f5350d9) to head (dfad56c).

Additional details and impacted files
@@              Coverage Diff              @@
##             master    #3106       +/-   ##
=============================================
- Coverage     72.76%   54.33%   -18.43%     
  Complexity      943      943               
=============================================
  Files          1117     1115        -2     
  Lines         96368    86100    -10268     
  Branches      73544    63275    -10269     
=============================================
- Hits          70119    46784    -23335     
- Misses        23702    36776    +13074     
+ Partials       2547     2540        -7     
Components Coverage Δ
Rust Core 48.19% <ø> (-25.30%) ⬇️
Java SDK 62.30% <ø> (ø)
C# SDK 69.40% <ø> (-0.02%) ⬇️
Python SDK 81.43% <ø> (ø)
Node SDK 91.40% <ø> (-0.13%) ⬇️
Go SDK 39.41% <ø> (ø)
see 242 files with indirect coverage changes
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…estart test

Use full DEFAULT_POLL_INTERVAL_MS (50ms) instead of dividing by 5 (10ms), matching other polling helpers.
@atharvalade atharvalade force-pushed the fix/flaky-postgres-restart-test branch from 1fd50cc to 4fc168e Compare April 13, 2026 15:38
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.

fix(test): flaky restart_sink_connector_continues_processing integration test

1 participant