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

Staleread does not work correctly #41539

Closed
xhebox opened this issue Feb 17, 2023 · 0 comments · Fixed by #41540
Closed

Staleread does not work correctly #41539

xhebox opened this issue Feb 17, 2023 · 0 comments · Fixed by #41540
Labels
severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@xhebox
Copy link
Contributor

xhebox commented Feb 17, 2023

Bug Report

Please answer these questions before submitting your issue. Thanks!

A bug introduced by #40768, check #40740 (comment) for more infomation.

1. Minimal reproduce step (Required)

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

MySQL [consistent_replicate_storage_file]> set @@tidb_snapshot=439512290927575059;
Query OK, 0 rows affected (0.007 sec)
MySQL [consistent_replicate_storage_file]> show tables;
+---------------------------------------------+
| Tables_in_consistent_replicate_storage_file |
+---------------------------------------------+
| check1                                      |
+---------------------------------------------+
1 row in set (0.001 sec)

3. What did you see instead (Required)

MySQL [consistent_replicate_storage_file]> set @@tidb_snapshot=439512492570574858;
Query OK, 0 rows affected (0.005 sec)

MySQL [consistent_replicate_storage_file]> show tables;
Empty set (0.001 sec)

MySQL [consistent_replicate_storage_file]> set @@tidb_snapshot=439512492570574859;
Query OK, 0 rows affected (0.004 sec)

MySQL [consistent_replicate_storage_file]> show tables;
Empty set (0.001 sec)

MySQL [consistent_replicate_storage_file]> set @@tidb_snapshot=439512492570574860;
Query OK, 0 rows affected (0.006 sec)

MySQL [consistent_replicate_storage_file]> show tables;
+---------------------------------------------+
| Tables_in_consistent_replicate_storage_file |
+---------------------------------------------+
| check1                                      |
+---------------------------------------------+
1 row in set (0.001 sec)

4. What is your TiDB version? (Required)

v6.7- nightly - 5df1913

@xhebox xhebox added type/bug The issue is confirmed as a bug. sig/sql-infra SIG: SQL Infra severity/moderate labels Feb 17, 2023
ti-chi-bot pushed a commit that referenced this issue Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant