Repository navigation
Add test: max_table_size_rows: still-rejected growing part commit has no test - #120920
Merged
alexey-milovidov merged 1 commit intoSep 20, 2026
Merged
Conversation
alexey-milovidov
approved these changes
Sep 19, 2026
Contributor
|
Workflow [PR], commit [e716746] Summary: ✅ AI ReviewSummaryThis PR adds a focused stateless test for the case where one Missing context / blind spots
Final Verdict✅ No new review findings. |
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.
Test-only PR. Review: are the gaps real, is the test right.
Adds test coverage for 1 untested code path, found during automated review of PR #117229.
That PR: (1)
MergeTreeData::throwIfTableSizeLimitsExceeded(MergeTreeData.cpp:7930-7933) gains the shrinking carve-out the byte limits already had: a part commit whose part holds no more rows than the parts it covers (added_rows <= covered.rows) is exempt frommax_table_size_rows, and a patch part …1.
max_table_size_rows: still-rejected growing part commit has no testsrc/Storages/MergeTree/MergeTreeData.cpp:7931,src/Storages/MergeTree/MergeTreeData.cpp:7063Risk:
MergeTreeSink::finishDelayedChunk->commitPart->renameTempPartAndAdd->renameTempPartAndReplaceImpl(MergeTreeData.cpp:7063) ->throwIfTableSizeLimitsExceeded(lock, part, covered_parts). The PR makes that throw conditional onis_shrinking_rows(MergeTreeData.cpp:7931); every …Unique vs PR tests: 05227 (the PR's own test) and 04910 pin only the allowed side of the new predicate - merges and deleting mutations that do not add rows commit on an over-limit table. Their rejection cases (
INSERT ... { serverError TABLE_SIZE_LIMIT_EXCEEDED }) all hit the pre-write check withadded_part == … **Tags:**-- Tags: no-replicated-database—no-replicated-database: the test asserts how much of a partially rejected insert survives; with the Replicated database engine the table becomesReplicatedMergeTreeand the parts are committed throughReplicatedMergeTreeSink` instead, which could not be verified locally (no ZooKeeper)Try it on ClickHouse Fiddle
cc @alexey-milovidov (author of #117229) — could you take a look, and add the
can be testedlabel if this looks good?Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not applicable — test-only change.
Documentation entry for user-facing changes
Workflow [PR]
Sync PR [sync-upstream/pr/120920]
Version info
26.10.1.264-master(included in26.10and later)