flashback to transaction begin fail for "Duplicate entry '30004' for key 'GLOBAL_VARIABLES.PRIMARY'" #40477
Labels
feature/developing
the related feature is in development
found/automation
Found by automation tests
severity/major
sig/sql-infra
SIG: SQL Infra
type/bug
This issue is a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
'CREATE TABLE t (a INT);'
'alter table t set tiflash replica 1'
'do sleep(10)'
'insert into t values(1),(1),(2);'
-----flashback target timestamp
'begin;'
'do sleep(4)'
'update t set a=111 where a=1;'
'commit;'
flashback cluster to timestamp '2023-01-10 21:41:13' --before "begin"
'do sleep(3)'
flashback cluster to timestamp '2023-01-10 21:41:13'
2. What did you expect to see? (Required)
flashback success
3. What did you see instead (Required)
(IntegrityError(1062, "Duplicate entry '30004' for key 'GLOBAL_VARIABLES.PRIMARY'")
4. What is your TiDB version? (Required)
[tidb@101 ~]$ /home/tidb/deploy/tidb-4000/bin/tidb-server -V
Release Version: v6.6.0-alpha
Edition: Community
Git Commit Hash: 7e64d04
Git Branch: heads/refs/tags/v6.6.0-alpha
UTC Build Time: 2023-01-05 14:32:46
GoVersion: go1.19.3
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: unistore
[tidb@101 ~]$
The text was updated successfully, but these errors were encountered: