Fix flaky test 03800_use_const_adaptive_granularity_vertical_merge by alexey-milovidov · Pull Request #100656 · ClickHouse/ClickHouse · GitHub
Skip to content

Fix flaky test 03800_use_const_adaptive_granularity_vertical_merge#100656

Closed
alexey-milovidov wants to merge 1 commit into
masterfrom
fix-const-adaptive-granularity-vertical-merge-test
Closed

Fix flaky test 03800_use_const_adaptive_granularity_vertical_merge#100656
alexey-milovidov wants to merge 1 commit into
masterfrom
fix-const-adaptive-granularity-vertical-merge-test

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Mar 24, 2026

Copy link
Copy Markdown
Member

Use OPTIMIZE TABLE ... FINAL to force the merge instead of relying on merge selector heuristics. Without FINAL, the merge selector may decide not to merge parts (e.g., due to memory limits from CompactionStatistics::getMaxSourcePartsBytesForMerge), causing the test to fail because the parts remain unmerged.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=100157&sha=6a8f4bf7d23b1337c4c93a7730b597ba68dafaff&name_0=PR&name_1=Stateless%20tests%20%28arm_binary%2C%20parallel%29
#100157

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

...

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Use `OPTIMIZE TABLE ... FINAL` to force the merge instead of relying
on merge selector heuristics. Without `FINAL`, the merge selector may
decide not to merge parts (e.g., due to memory limits from
`CompactionStatistics::getMaxSourcePartsBytesForMerge`), causing the
test to fail because the parts remain unmerged.

https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=100157&sha=6a8f4bf7d23b1337c4c93a7730b597ba68dafaff&name_0=PR&name_1=Stateless%20tests%20%28arm_binary%2C%20parallel%29

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@clickhouse-gh

clickhouse-gh Bot commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Mar 24, 2026
@pufit

pufit commented Mar 24, 2026

Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants