Skip to content

Fix memory leak when exception is thrown in the middle of aggregation with -State functions#11496

Merged
alexey-milovidov merged 7 commits intomasterfrom
fix-aggregation-state-exception-safety-memory-leak
Jun 8, 2020
Merged

Fix memory leak when exception is thrown in the middle of aggregation with -State functions#11496
alexey-milovidov merged 7 commits intomasterfrom
fix-aggregation-state-exception-safety-memory-leak

Conversation

@alexey-milovidov
Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix memory leak when exception is thrown in the middle of aggregation with -State functions. This fixes #8995.

@blinkov blinkov added the pr-bugfix Pull request with bugfix, not backported by default label Jun 7, 2020
@alexey-milovidov
Copy link
Copy Markdown
Member Author

ClickHouse build check — 20/21 builds are OK

Unbundled build is accidentially broken by @abyss7. Fixed in master.

@alexey-milovidov alexey-milovidov marked this pull request as draft June 8, 2020 03:57
@alexey-milovidov alexey-milovidov marked this pull request as ready for review June 8, 2020 04:24
@alexey-milovidov
Copy link
Copy Markdown
Member Author

Waiting for performance test...

@alexey-milovidov
Copy link
Copy Markdown
Member Author

Performance test Ok.
There is some slowdown but only in "unstable" queries - it has no statistical significance.

@alexey-milovidov alexey-milovidov self-assigned this Jun 8, 2020
@alexey-milovidov alexey-milovidov merged commit 2bff9b4 into master Jun 8, 2020
@alexey-milovidov alexey-milovidov deleted the fix-aggregation-state-exception-safety-memory-leak branch June 8, 2020 19:03
vitlibar pushed a commit that referenced this pull request Jun 19, 2020
…tion-safety-memory-leak

Fix memory leak when exception is thrown in the middle of aggregation with -State functions

(cherry picked from commit 2bff9b4)
vitlibar pushed a commit that referenced this pull request Jun 19, 2020
…tion-safety-memory-leak

Fix memory leak when exception is thrown in the middle of aggregation with -State functions

(cherry picked from commit 2bff9b4)
vitlibar pushed a commit that referenced this pull request Jun 20, 2020
…tion-safety-memory-leak

Fix memory leak when exception is thrown in the middle of aggregation with -State functions

(cherry picked from commit 2bff9b4)
azat added a commit to azat/ClickHouse that referenced this pull request Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-docs-needed pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

uniqState memory leak

4 participants