-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
[Lightning]: Panic on invalid Mertic countter operation #37338
Comments
value of need to reproduce it. |
user changed lightning code, cannot find code related to hash b3ee7aef716e39dd5c6744e4dac0fbbb3529aca7 not sure the root cause is from 6.1 code base or from user's customization |
update: the error happens when importing fixed-width text format file, not csv but pretend it as csv. in the datafile there're binary data which contains csv terminator which causes error. cannot reproduce it now. |
Reproduced in a ONCALL ticket |
I printed tidb/lightning/pkg/importer/chunk_process.go Line 487 in 07508df
there's an off-by-1 error, the chunk reader does not stop
|
root cause: For data with lint terminator tidb/pkg/lightning/mydump/region.go Lines 455 to 458 in aeafb18
But unfortunately we seek to workaround is, set terminator to |
/found customer |
Bug Report
Version: 6.1.0
Lightning panic on https://github.com/pingcap/tidb/blob/master/br/pkg/lightning/restore/restore.go#L2333
I think it's because float64(currOffset - startOffset) < 0.
The text was updated successfully, but these errors were encountered: