Skip to content

Fix crash during lighweight mutation with projections#84158

Merged
alesapin merged 3 commits intomasterfrom
fix_crash_with_lighweight
Jul 23, 2025
Merged

Fix crash during lighweight mutation with projections#84158
alesapin merged 3 commits intomasterfrom
fix_crash_with_lighweight

Conversation

@alesapin
Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Critical Bug Fix (crash, data loss, RBAC) or LOGICAL_ERROR

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

Fix rare clickhouse crash when table has projection, lightweight_mutation_projection_mode = 'rebuild' and user execute lighweight delete which deletes ALL rows from any block in table.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

@alesapin alesapin added pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-cloud labels Jul 21, 2025
@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh bot commented Jul 21, 2025

Workflow [PR], commit [96a79ce]

Summary:

job_name test_name status info comment
Stateless tests (amd_binary, old analyzer, s3 storage, DatabaseReplicated, parallel) failure
03100_lwu_27_update_after_on_fly_mutations FAIL

@alesapin
Copy link
Copy Markdown
Member Author

03100_lwu_27_update_after_on_fly_mutations is flaky. This test doesn't have any projections or lightweight deletes. My change is strictly related to combination of these two features and shouldn't affect it anyhow. I've created an issue: #84277

@alesapin
Copy link
Copy Markdown
Member Author

I've checked CI database, there are no other failures of 03100_lwu_27_update_after_on_fly_mutations. If this test will become flaky after this merge I'll revert this pr.

@alesapin alesapin added this pull request to the merge queue Jul 23, 2025
Merged via the queue into master with commit 24dfe73 Jul 23, 2025
121 of 125 checks passed
@alesapin alesapin deleted the fix_crash_with_lighweight branch July 23, 2025 10:23
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 23, 2025
@robot-clickhouse robot-clickhouse added pr-backports-created-cloud deprecated label, NOOP pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR labels Jul 23, 2025
robot-clickhouse added a commit that referenced this pull request Jul 23, 2025
Cherry pick #84158 to 25.5: Fix crash during lighweight mutation with projections
robot-clickhouse added a commit that referenced this pull request Jul 23, 2025
Cherry pick #84158 to 25.6: Fix crash during lighweight mutation with projections
robot-clickhouse added a commit that referenced this pull request Jul 23, 2025
Cherry pick #84158 to 25.7: Fix crash during lighweight mutation with projections
clickhouse-gh bot added a commit that referenced this pull request Jul 23, 2025
Backport #84158 to 25.7: Fix crash during lighweight mutation with projections
alesapin added a commit that referenced this pull request Jul 23, 2025
Backport #84158 to 25.5: Fix crash during lighweight mutation with projections
alesapin added a commit that referenced this pull request Jul 23, 2025
Backport #84158 to 25.6: Fix crash during lighweight mutation with projections
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-backports-created-cloud deprecated label, NOOP pr-critical-bugfix pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants