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

when do flashback table. The mysql.gc_delete_range table is not emptied.After gc the data will gone. #37386

Closed
erwadba opened this issue Aug 25, 2022 · 0 comments · Fixed by #38038
Assignees

Comments

@erwadba
Copy link
Contributor

erwadba commented Aug 25, 2022

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

# tiup  playground v6.2.0  --host 0.0.0.0
# mysql -uroot -P4000 -h xx.xx.xx.xx
mysql> create database a;
mysql> use a;
mysql> create table t(id int);
mysql> insert into t values(1),(2),(3);
mysql> drop table t;
mysql> flashback table t;
mysql> select * from mysql.gc_delete_range;

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

mysql.delete range is empty. The data of flashback table will not be lost.

3. What did you see instead (Required)

mysql.delete range is not empty. The data is gone after gc .

4. What is your TiDB version? (Required)

mysql> select  tidb_version()\G
*************************** 1. row ***************************
tidb_version(): Release Version: v6.2.0
Edition: Community
Git Commit Hash: daf2b17cdfe30c02ce282361009fb5bdb05f2b0e
Git Branch: heads/refs/tags/v6.2.0
UTC Build Time: 2022-08-22 13:47:05
GoVersion: go1.18.5
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: tikv
1 row in set (0.00 sec)

mysql> 
@erwadba erwadba added the type/bug The issue is confirmed as a bug. label Aug 25, 2022
@erwadba erwadba changed the title when do flashback table. The mysql.gc_delete_range table is not emptied. when do flashback table. The mysql.gc_delete_range table is not emptied.After gc the data will gone. Aug 25, 2022
@ChenPeng2013 ChenPeng2013 added the sig/sql-infra SIG: SQL Infra label Aug 26, 2022
@tiancaiamao tiancaiamao self-assigned this Aug 26, 2022
@ti-chi-bot ti-chi-bot added may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.0 may-affects-6.3 labels Sep 19, 2022
@jebter jebter removed may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-6.0 labels Sep 19, 2022
ti-chi-bot pushed a commit that referenced this issue Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants