Repository navigation
Make RabbitMQ direct selects tolerate slow consumption - #108364
Conversation
Direct SELECT from `RabbitMQ` consumes rows, so tests must accumulate returned batches. Reset the polling deadline whenever accumulated rows increase to avoid failing while sanitizer/db-disk runs are still making progress. CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=108014&sha=ca91c12b238e033b5dc8c7453295e4e7017ac997 Related PR: #108014
|
Workflow [PR], commit [4e6f270] Summary: ✅ AI ReviewSummaryThis PR extracts progress-aware polling for Final VerdictStatus: ✅ Approve |
There was a problem hiding this comment.
Pull request overview
Improves resiliency of RabbitMQ integration tests that use direct SELECT (which consumes messages) by switching from fixed-deadline polling loops to a progress-based polling helper that extends the deadline whenever more rows are accumulated.
Changes:
- Added
poll_direct_select_resulthelper to poll direct-select queries while extending the deadline on consumption progress. - Refactored multiple direct-select tests in
test.pyto use a sharedcheck_direct_select_result_pollingwrapper. - Updated
test_shutdown.pyto use the new polling helper for the virtual column direct-select assertion.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
tests/integration/test_storage_rabbitmq/test.py |
Replaces duplicated direct-select polling loops with a shared polling wrapper built on the new helper. |
tests/integration/test_storage_rabbitmq/test_shutdown.py |
Uses the new helper to wait for direct-select consumption to reach the expected row count. |
tests/integration/test_storage_rabbitmq/__init__.py |
Introduces poll_direct_select_result helper implementing progress-based polling for direct selects. |
Track progress in `poll_direct_select_result` from each newly fetched batch instead of recounting rows from the accumulated result on every poll iteration.
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 313 line(s), 49 function(s) across 104 file(s) · Details Top files
|
…w-sanitizer-polling Make RabbitMQ direct selects tolerate slow consumption
|
backporting to fix CI |
Make direct
RabbitMQselect tests resilient to slow sanitizer/db-disk runs by resetting the polling deadline whenever accumulated rows increase. Direct selects consume rows fromRabbitMQ, so the tests still accumulate returned batches rather than replacing the result.CI report:
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=108014&sha=ca91c12b238e033b5dc8c7453295e4e7017ac997&name_0=PR&name_1=Integration%20tests%20%28amd_asan_ubsan%2C%20db%20disk%2C%20old%20analyzer%2C%206%2F6%29
Related: #108014
No existing open tracking issue was found for
test_rabbitmq_csv_with_delimiteror theRabbitMQtimeout.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not required.
Documentation entry:
Version info
26.7.1.33