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

Lightning: fail to run when lightning account lacks config privilege #41915

Closed
lichunzhu opened this issue Mar 3, 2023 · 1 comment · Fixed by #41959
Closed

Lightning: fail to run when lightning account lacks config privilege #41915

lichunzhu opened this issue Mar 3, 2023 · 1 comment · Fixed by #41959
Labels
affects-6.6 component/lightning This issue is related to Lightning of TiDB. severity/moderate type/bug The issue is confirmed as a bug.

Comments

@lichunzhu
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

Use lightning to import some large data using tidb backend.

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

Lightning can import data correctly.

3. What did you see instead (Required)

Lightning fails because it lacks of config privilege.

4. What is your TiDB version? (Required)

v6.6.0

@lichunzhu lichunzhu added type/bug The issue is confirmed as a bug. affects-6.6 component/lightning This issue is related to Lightning of TiDB. labels Mar 3, 2023
@lichunzhu
Copy link
Contributor Author

Root cause

Lightning will get keyNamespace from TiDB for importing. When it lacks config privilege this try will fail.
https://github.com/pingcap/tidb/blob/master/br/pkg/lightning/lightning.go#L576

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.6 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.

1 participant