-
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
Data inconsistency after adding index in ingest mode #46033
Comments
lightning always use its owner session to encode KV pairs. We should set all related session variables to it, or use kernel's session tidb/br/pkg/lightning/backend/kv/session.go Lines 263 to 266 in 61ecb59
|
So, what you mean is that lightning didn't get the timezone from TiDB connection? |
Yes, just a guess. Will take a look later. |
Sorry I just checked DDL worker will do the encoding work rather than lightning. Seems it's a issue of DDL |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
No error of admin check statement.
3. What did you see instead (Required)
error, timestamp column set the wrong timezone in index.
4. What is your TiDB version? (Required)
c7c7000
The text was updated successfully, but these errors were encountered: