Skip to content

Preserve errors for INSERT into Distributed#23744

Merged
kitaisreal merged 3 commits intoClickHouse:masterfrom
azat:dist-INSERT-preserve-error
Apr 29, 2021
Merged

Preserve errors for INSERT into Distributed#23744
kitaisreal merged 3 commits intoClickHouse:masterfrom
azat:dist-INSERT-preserve-error

Conversation

@azat
Copy link
Copy Markdown
Member

@azat azat commented Apr 28, 2021

Changelog category (leave one):

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Avoid possible "Cannot schedule a task" error (in case some exception had been occurred) on INSERT into Distributed

Detailed description / Documentation draft:
Before this patch (and after #22208) the INSERT may fail with "Cannot
schedule a task" because the pool in DistributedBlockOutputStream
already throws exception and simply fail in writeSuffix().

NOTE: that this is kind of minor issue so maybe it does not worth it marking as bugfix to avoid backports

@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Apr 28, 2021
@kitaisreal kitaisreal self-assigned this Apr 28, 2021
azat added 2 commits April 28, 2021 22:33
Before this patch (and after ClickHouse#22208) the INSERT may fail with "Cannot
schedule a task" because the pool in DistributedBlockOutputStream
already throws exception and simply fail in writeSuffix().
@azat azat force-pushed the dist-INSERT-preserve-error branch from 2eedce8 to 73ab415 Compare April 28, 2021 19:33
@azat
Copy link
Copy Markdown
Member Author

azat commented Apr 29, 2021

Integration tests (release) — fail: 1, passed: 1310, flaky: 1
Integration tests (thread) — Timeout, fail: 2, passed: 1068, flaky: 0

Known flaky tests

Yandex third-party checks (only for Yandex employees)

Any clue?

@azat
Copy link
Copy Markdown
Member Author

azat commented Apr 29, 2021

Stress test (thread) — Hung check failed

Let's try this #23750

@kitaisreal
Copy link
Copy Markdown
Contributor

@azat synchronisation check is our issue in master.

@kitaisreal kitaisreal merged commit 1db6eb3 into ClickHouse:master Apr 29, 2021
kitaisreal added a commit that referenced this pull request Apr 29, 2021
Backport #23744 to 21.5: Preserve errors for INSERT into Distributed
@azat azat deleted the dist-INSERT-preserve-error branch April 30, 2021 06:06
kitaisreal added a commit that referenced this pull request Apr 30, 2021
Backport #23744 to 21.4: Preserve errors for INSERT into Distributed
kitaisreal added a commit that referenced this pull request Apr 30, 2021
Backport #23744 to 21.3: Preserve errors for INSERT into Distributed
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.

3 participants