Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Cherry pick #92390 to 25.3: Fix possible crash in aggregate functions after MEMORY_LIMIT_EXCEEDED#92423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@robot-clickhouse
Copy link
Member

Original pull-request#92390

Do not merge this PR manually

This pull-request is a first step of an automated backporting.
It contains changes similar to callinggit cherry-pick locally.
If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.

The check results does not matter at this step - you can safely ignore them.

Troubleshooting

If the conflicts were resolved in a wrong way

If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:

  • delete thepr-cherrypick label from the PR
  • delete this branch from the repository

You also need to check theOriginal pull-request forpr-backports-created label, and delete if it's presented there

The PR source

The PR is created in theCI job

The problem is when ColumnAggregateFunction is reused after exception,this is the case of async_insert=1, where we are trying to load eachINSERT batch, and if it fails, continue with other batches.The problem was that once ColumnAggregateFunction::ensureOwnership()throws, it leaves the column in a broken state, since all aggregationstates up to rollback_pos will be broken.The fix is simple - just copy them from source column again.And add a unit test.
Fix possible crash in aggregate functions after MEMORY_LIMIT_EXCEEDED
@robot-clickhouserobot-clickhouse added pr-cherrypickCherry-pick of merge-commit before backporting. Do not use manually - automated use only! do not testdisable testing on pull request pr-critical-bugfix labelsDec 17, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

@azatazat

@novikdnovikd

Labels

do not testdisable testing on pull requestpr-cherrypickCherry-pick of merge-commit before backporting. Do not use manually - automated use only!pr-critical-bugfix

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@robot-clickhouse@azat@novikd@robot-ch-test-poll2

[8]ページ先頭

©2009-2025 Movatter.jp