Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Corruption LZ4 #125

Closed
klauspost opened this issue May 19, 2021 · 2 comments · Fixed by #127
Closed

Data Corruption LZ4 #125

klauspost opened this issue May 19, 2021 · 2 comments · Fixed by #127

Comments

@klauspost
Copy link
Contributor

Using https://files.klauspost.com/compress/nyc-taxi-data-10M.csv.zst (uncompresed)

Execute:

lz4c compress nyc-taxi-data-10M.csv&&mv nyc-taxi-data-10M.csv nyc-taxi-data-10M.csv.org&&lz4c uncompress nyc-taxi-data-10M.csv.lz4
nyc-taxi-data-10M.csv.lz4 32.47%
nyc-taxi-data-10M.csv  99% |███████████████████████████████████████ |  [1s:0s]lz4: invalid frame checksum: got a106b1a0; expected 4608b3de

Blocks appear to be out of order or something else is off. Reproduces on master, Go 1.16.2, Windows 10, 64 bits.

@pierrec
Copy link
Owner

pierrec commented May 20, 2021

Interesting. Will work on it when time permits.

@rvrangel
Copy link

rvrangel commented Jun 1, 2021

this seems to be happening when concurrency is used (if disabled via flags, this error doesn't happen). I put a PR with a possible fix: #127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants