Skip to content

Fix WriteBuffer finalize in destructor when cancel query#39396

Merged
Avogar merged 1 commit intoClickHouse:masterfrom
Avogar:try-fix-write-buffer-terminate
Jul 20, 2022
Merged

Fix WriteBuffer finalize in destructor when cancel query#39396
Avogar merged 1 commit intoClickHouse:masterfrom
Avogar:try-fix-write-buffer-terminate

Conversation

@Avogar
Copy link
Copy Markdown
Member

@Avogar Avogar commented Jul 19, 2022

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in official stable or prestable release)

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

Fix WriteBuffer finalize in destructor when cacnel query that could lead to stuck query or even terminate. Closes #38199

Information about CI checks: https://clickhouse.com/docs/en/development/continuous-integration/

@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-bugfix Pull request with bugfix, not backported by default label Jul 19, 2022
@Avogar
Copy link
Copy Markdown
Member Author

Avogar commented Jul 19, 2022

I will create a separate PR soon where I will try to get rid of finalize in destructors and see what will happen

@kitaisreal kitaisreal self-assigned this Jul 20, 2022
@Avogar Avogar merged commit 7722b64 into ClickHouse:master Jul 20, 2022
@alexey-milovidov alexey-milovidov changed the title Fix WriteBuffer finalize in destructor when cacnel query Fix WriteBuffer finalize in destructor when cancel query Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot quickly cancel INSERT INTO FUNCTION s3 query

3 participants