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
[Bug]: the result of select count(*) from table{snapshot = ''} is not correct after creating snapshot. #15907
Closed
1 task done
Labels
kind/bug
Something isn't working
needs-triage
phase/testing
severity/s0
Extreme impact: Cause the application to break down and seriously affect the use
Milestone
Comments
Ariznawlll
added
kind/bug
Something isn't working
needs-triage
severity/s0
Extreme impact: Cause the application to break down and seriously affect the use
labels
May 8, 2024
mysql> drop database if exists test06;
Query OK, 1 row affected (0.03 sec)
mysql> create database test06;
Query OK, 1 row affected (0.01 sec)
mysql> use test06;
Database changed
mysql> drop table if exists tran01;
Query OK, 0 rows affected (0.01 sec)
mysql> create table tran01(col1 enum('red','blue','green'));
Query OK, 0 rows affected (0.02 sec)
mysql> insert into tran01 values('red'),('blue'),('green');
Query OK, 3 rows affected (0.01 sec)
mysql> create snapshot sp09 for account sys;
Query OK, 0 rows affected (0.01 sec)
mysql> show snapshots;
+---------------+----------------------------+----------------+--------------+---------------+------------+
| SNAPSHOT_NAME | TIMESTAMP | SNAPSHOT_LEVEL | ACCOUNT_NAME | DATABASE_NAME | TABLE_NAME |
+---------------+----------------------------+----------------+--------------+---------------+------------+
| sp09 | 2024-05-08 09:01:25.125511 | account | sys | | |
+---------------+----------------------------+----------------+--------------+---------------+------------+
2 rows in set (0.00 sec)
mysql> select count(*) from tran01{snapshot = 'sp09'};
+----------+
| count(*) |
+----------+
| 0 |
+----------+
1 row in set (0.02 sec)
mysql> select count(*) from tran01{snapshot = 'sp09'};
+----------+
| count(*) |
+----------+
| 0 |
+----------+
1 row in set (0.00 sec)
mysql> select count(*) from tran01;
+----------+
| count(*) |
+----------+
| 3 |
+----------+
1 row in set (0.01 sec)
mysql> select count(*) from tran01{snapshot = 'sp09'};
+----------+
| count(*) |
+----------+
| 3 |
+----------+
1 row in set (0.00 sec) |
the cause had been found, pls wait for PR. |
This was referenced May 8, 2024
commit: 4d44f72 verified. |
Hello @Ariznawlll. The bug issue in the BVT test code has not been removed,issues automatically open. |
removing tag, in progress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
kind/bug
Something isn't working
needs-triage
phase/testing
severity/s0
Extreme impact: Cause the application to break down and seriously affect the use
Is there an existing issue for the same bug?
Branch Name
main
Commit ID
2558e02
Other Environment Information
Actual Behavior
Expected Behavior
select count(*) from tran01{snapshot = 'sp09'}
3
Steps to Reproduce
drop database if exists test06; create database test06; use test06; drop table if exists tran01; create table tran01(col1 enum('red','blue','green')); insert into tran01 values('red'),('blue'),('green'); create snapshot sp09 for account sys; show snapshots; select count(*) from tran01{snapshot = 'sp09'}; -->出错位置
Additional information
No response
The text was updated successfully, but these errors were encountered: