Skip to content

Mark distributed batch as broken in case of empty data block in one of files#19449

Merged
alexey-milovidov merged 1 commit intoClickHouse:masterfrom
azat:dist-send-check-block
Jan 23, 2021
Merged

Mark distributed batch as broken in case of empty data block in one of files#19449
alexey-milovidov merged 1 commit intoClickHouse:masterfrom
azat:dist-send-check-block

Conversation

@azat
Copy link
Copy Markdown
Member

@azat azat commented Jan 22, 2021

Changelog category (leave one):

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Mark distributed batch as broken in case of empty data block in one of files

Detailed description / Documentation draft:
It is possible to get corruption (even though it is very unlikely, and
initially it wasn't corruption, but ignored exception - #19451) just before the data block goes in the
file on disk, and in case of batching, it will break the packets, since
it will write the packet type but will not write any data after.

…tributed

It is possible to get corruption (even though it is very unlikely, and
initially it wasn't corruption) just before the data block goes in the
file on disk, and in case of batching, it will break the packets, since
it will write the packet type but will not write any data after.
@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Jan 22, 2021
@azat azat changed the title Check the stream before sending while hanlding async INSERTs into Distributed Mark distributed batch as broken in case of empty data block in one of files Jan 22, 2021
@alexey-milovidov alexey-milovidov self-assigned this Jan 22, 2021
@alexey-milovidov alexey-milovidov merged commit 7f059e3 into ClickHouse:master Jan 23, 2021
@azat azat deleted the dist-send-check-block branch January 23, 2021 09:47
robot-clickhouse pushed a commit that referenced this pull request Jan 26, 2021
robot-clickhouse pushed a commit that referenced this pull request Jan 26, 2021
vitlibar pushed a commit that referenced this pull request Feb 1, 2021
…9784097e8e308e902dc53be0fec7e

Cherry pick #19449 to 21.1: Mark distributed batch as broken in case of empty data block in one of files
vitlibar pushed a commit that referenced this pull request Feb 1, 2021
Backport #19449 to 20.12: Mark distributed batch as broken in case of empty data block in one of files
vitlibar pushed a commit that referenced this pull request Feb 1, 2021
Backport #19449 to 20.11: Mark distributed batch as broken in case of empty data block in one of files
robot-clickhouse pushed a commit that referenced this pull request Feb 17, 2021
alexey-milovidov added a commit that referenced this pull request Feb 19, 2021
Backport #19449 to 21.1: Mark distributed batch as broken in case of empty data block in one of files
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