Repository navigation
Fix rabbitmq engine performance issues - #102711
Conversation
|
Workflow [PR], commit [e1b7b00] Summary: ❌
AI ReviewSummaryThis PR fixes RabbitMQ engine shutdown behavior under idle-loop conditions by separating background-loop stop ( ClickHouse Rules
Final Verdict
|
|
Let's fix tests. |
|
@nikitamikhaylov the remaining test failure seems unrelated or a random failure? |
LLVM Coverage Report
Changed lines: 66.29% (59/89) · Uncovered code |
|
Failing test seems unrelated/flaky |
|
Thank you for the fix! |
e965b5f
|
Hi — this PR may need backporting to Affected code: Why: The busy-spinning CPU waste in If this should be backported, consider adding |
|
@kssenii could you add backport labels? If you agree with this needing backporting. |
Cherry pick #102711 to 25.8: Fix rabbitmq engine performance issues
Cherry pick #102711 to 26.3: Fix rabbitmq engine performance issues
Backport #102711 to 26.3: Fix rabbitmq engine performance issues
The three tests in `tests/integration/test_storage_rabbitmq/test_shutdown.py` have been failing in CI: - `test_shutdown_rabbitmq_with_materialized_view` - `test_idle_loop_shutdown_completes_promptly` - `test_rabbitmq_virtual_column_table` The fourth test in the file (`test_attach_detach_rabbitmq_with_materialized_view`) was already marked as `pytest.mark.skip` due to a known data race in `StorageRabbitMQ` shutdown. Per @alexey-milovidov's directive on PR ClickHouse#104253: > "remove (or, optionally, fix) failed RabbitMQ tests and send a PR. > Tag the author who tried to resurrect RabbitMQ tests recently, > as it was a bad idea." Removing the entire `test_shutdown.py` file rather than skipping its contents, since the only non-skipped tests in it are flaky and the remaining test was already non-runnable. Context: - The `test_storage_rabbitmq` suite was originally removed in PR ClickHouse#93107 due to chronic flakiness, then restored in PR ClickHouse#101967 (2026-04-07). - `test_shutdown.py` was added shortly after in PR ClickHouse#102711 (2026-04-21). cc @alexey-milovidov @fm4v @jaapieaapie1
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fixed excessive RabbitMQ table engine CPU usage
Documentation entry for user-facing changes
Closes #62525 #50692 and #53401
Before:

After:

Ofcourse verified that all functionality stays in tact and it still recovers from errors like disconnections from rabbitmq.
Version info
26.4.1.101526.3.10.45