You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
The cause of this issue is that BR did not backup the "incremental part" of auto_random, and when restoring the data, TiDB cannot rebase the counter automatically since the restore is not in SQL layer.
In order to solve it, we need:
For BR, backup the counter and try to restore it by an explicit rebase operation provided by TiDB(see below).
Please answer these questions before submitting your issue. Thanks!
What did you do?
If possible, provide a recipe for reproducing the error.
BR didn't rebase auto_random after restore
auto_random
to true.create table t(a int key auto_random); insert into t values (), (), ();
br backup table --db t --table t --pd xxx -s xxx
drop table t
br restore table --db t --table t --pd xxx -s xxx
insert into t values (),(),();
before backup:
after restore:
after restore:
master
The text was updated successfully, but these errors were encountered: