Fix ZstdDeflatingWriteBuffer truncating the output sometimes#53064
Merged
alexey-milovidov merged 1 commit intomasterfrom Aug 5, 2023
Merged
Fix ZstdDeflatingWriteBuffer truncating the output sometimes#53064alexey-milovidov merged 1 commit intomasterfrom
alexey-milovidov merged 1 commit intomasterfrom
Conversation
Contributor
|
This is an automated comment for commit 9a128fa with description of existing statuses. It's updated for the latest CI running
|
alexey-milovidov
approved these changes
Aug 4, 2023
alexey-milovidov
added a commit
that referenced
this pull request
Aug 5, 2023
Backport #53064 to 23.7: Fix ZstdDeflatingWriteBuffer truncating the output sometimes
Member
|
I'm afraid this breaks Keeper and writing to compressed log files |
Member
|
@al13n321 I'm going to revert |
Member
|
Yes, it breaks Keeper and Stress tests: #53090 (comment) |
antonio2368
added a commit
that referenced
this pull request
Aug 7, 2023
1 task
This was referenced Aug 7, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fixed
output_format_parquet_compression_method='zstd'producing invalid Parquet files sometimes. In older versions, use settingoutput_format_parquet_use_custom_encoder = 0as a workaround.Closes #53028
ZstdDeflatingWriteBuffer::finalizeBefore()was callingZSTD_compressStream2()once instead of in a loop.Along the way, deduplicated nearly identical code between
nextImpl()andfinalizeBefore()inZstdDeflatingWriteBufferZstdDeflatingAppendableWriteBuffer. Merging nearly identicalZstdDeflatingWriteBufferandZstdDeflatingAppendableWriteBufferinto one class is left as an exercise to the reader.