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

import large zstd files may encounter error #53587

Closed
lance6716 opened this issue May 27, 2024 · 2 comments
Closed

import large zstd files may encounter error #53587

lance6716 opened this issue May 27, 2024 · 2 comments
Labels
component/lightning This issue is related to Lightning of TiDB. severity/moderate type/bug The issue is confirmed as a bug.

Comments

@lance6716
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

generate a large zstd data file and import by

bin/tidb-lightning -d /tmp/test-zstd -backend tidb --tidb-port 4000

2. What did you expect to see? (Required)

no error

3. What did you see instead (Required)

many kind of errors, like

encode kv error in file coincheck.exchange_order_applies.000000000.sql.zst:0 at offset 42598379: tableLog too large
encode kv error in file coincheck.exchange_order_applies.000000000.sql.zst:0 at offset 52101109: tableLog too large
encode kv error in file coincheck.exchange_order_applies.000000000.sql.zst:0 at offset 11796469: invalid input: reserved block type encountered

4. What is your TiDB version? (Required)

@lance6716 lance6716 added the type/bug The issue is confirmed as a bug. label May 27, 2024
@lance6716
Copy link
Contributor Author

lance6716 commented May 27, 2024

Seems it's caused by some race in zstd decoder, but go's race detector does not report any problem. And I set concurrency = 1 the problem is gone.

Will set concurrency = 1 as a workaround and report the problem to upstream

@jebter jebter added the component/lightning This issue is related to Lightning of TiDB. label May 28, 2024
@lance6716
Copy link
Contributor Author

maybe related to #53655

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/lightning This issue is related to Lightning of TiDB. severity/moderate type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants