Repository navigation
Revert "Reduce idle RabbitMQ CPU by 95% by not rebuilding the insert pipeline on every empty read" - #134110
Merged
alexey-milovidov merged 1 commit intoNov 25, 2026
Conversation
…ty-read-like-kafka" This reverts commit 3d50995, reversing changes made to 73c474c. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
Collaborator
Author
|
cc @alexey-milovidov, could you review this? This reverts #133527, which makes a materialized view created on an idle RabbitMQ table miss the messages published right after it (#133901, two stream-mode tests red on master): the reproducer loses the new view's rows at 3d50995 and not at 73c474c. The fix in #133955 is the alternative. |
Contributor
Member
|
@groeneai, after this get merged, reintroduce the original change with the fixes. |
Merged
via the queue into
ClickHouse:master
with commit Nov 25, 2026
60698f5
576 of 578 checks passed
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reverts #133527
Related: #133901
Related: #133527
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Description
#133527 made a materialized view created on an idle
RabbitMQtable miss the messages published right after itsCREATE(#133901): an empty first read now waits up tostream_poll_timeout_msinside the insert pipeline built before the view existed, then acks what arrives. Since the merge,test_rabbitmq_handle_error_mode_streamfails in 26 of 547 CI runs andtest_rabbitmq_reject_broken_messages_streamin 10 of 543, against 1 in 12,727 before. The reproducer from #133901 loses the new view's rows at the merge commit 3d50995 in 5/5 runs and at its first parent 73c474c in 0/10 (debug builds), and in 10/10 on master 6d2bccb. The revert brings back the idle CPU cost #133527 removed. An alternative fix is open in #133955.Proof
Lost = all 100 messages reach
t1(the view that existed) and none reacht2(the view created during the wait); they are acked.Each run, in a fresh database:
On this revert,
test_rabbitmq_handle_error_mode_streamandtest_rabbitmq_reject_broken_messages_streampass 10/10 each, and the rest oftest_storage_rabbitmqpasses locally excepttest_rabbitmq_broker_log_is_collectedandtest_rabbitmq_select[1], which need the CI runner image's broker config (TLS listener, log file) and fail the same way at the first parent.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/134110]
Version info
26.12.1.446-master(included in26.12and later)