Skip to content

Do not checksum on LZ4 compress#76666

Merged
Tim-Brooks merged 3 commits intoelastic:masterfrom
Tim-Brooks:no_checksum
Aug 18, 2021
Merged

Do not checksum on LZ4 compress#76666
Tim-Brooks merged 3 commits intoelastic:masterfrom
Tim-Brooks:no_checksum

Conversation

@Tim-Brooks
Copy link
Copy Markdown
Contributor

@Tim-Brooks Tim-Brooks commented Aug 18, 2021

Currently we use the custom lz4-block scheme when compressing data. This
scheme automatically calculates and write a checksum when compressing.
We do not actually read this checksum when decompressing so it is
unnecessary. This commit resolves this by not writing a no-op checksum.
This will break arbitrary decompressors. However, since the lz4 block
format is not an official format anyway, this should be fine.

Relates to #73497.

Currently we use the custom lz4-block scheme when compressing data. This
scheme automatically calculates and write a checksum when compressing.
We do not actually read this checksum when decompressing so it is
unnecessary. This commit resolves this by not writing a no-op checksum.
This will break arbitrary decompressors. However, since the lz4 block
format is not an official format anyway, this should be fine.

Relates to elastic#73497/
@Tim-Brooks Tim-Brooks added >non-issue :Distributed/Network Http and internode communication implementations v8.0.0 v7.16.0 labels Aug 18, 2021
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team. label Aug 18, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

Copy link
Copy Markdown
Contributor

@henningandersen henningandersen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Depending on benchmarks we may want this in 7.15 too.

@Tim-Brooks
Copy link
Copy Markdown
Contributor Author

Depending on benchmarks we may want this in 7.15 too.

Yeah. We can check back after a nightly or two.

Tim-Brooks added a commit that referenced this pull request Aug 18, 2021
Currently we use the custom lz4-block scheme when compressing data. This
scheme automatically calculates and write a checksum when compressing.
We do not actually read this checksum when decompressing so it is
unnecessary. This commit resolves this by not writing a no-op checksum.
This will break arbitrary decompressors. However, since the lz4 block
format is not an official format anyway, this should be fine.

Relates to #73497.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Network Http and internode communication implementations >non-issue Team:Distributed Meta label for distributed team. v7.16.0 v8.0.0-alpha2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants