Bug #8507 | Inconsistent snapshot after commit | ||
---|---|---|---|
Submitted: | 14 Feb 2005 22:19 | Modified: | 16 Feb 2005 8:02 |
Reporter: | [ name withheld ] | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S1 (Critical) |
Version: | 4.1.9 | OS: | Linux (Linux) |
Assigned to: | CPU Architecture: | Any |
[14 Feb 2005 22:19]
[ name withheld ]
[14 Feb 2005 22:34]
Heikki Tuuri
Hi! I am not able to repeat this with 4.1.10 on Linux. Are you using the MySQL query cache? Please post the complete printout of the problematic runs, as well as your my.cnf. Session 1: Your MySQL connection id is 2 to server version: 4.1.10-debug-log Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> set autocommit=0; Query OK, 0 rows affected (0.05 sec) mysql> create table t(a int not null primary key, b int) type = innodb; Query OK, 0 rows affected, 1 warning (0.07 sec) mysql> insert into t values (1, 10); Query OK, 1 row affected (0.00 sec) mysql> insert into t values (2, 11); Query OK, 1 row affected (0.00 sec) mysql> insert into t values (3, 12); Query OK, 1 row affected (0.00 sec) mysql> commit; Query OK, 0 rows affected (0.00 sec) mysql> update t set b = 100 where a = 2; Query OK, 1 row affected (0.04 sec) Rows matched: 1 Changed: 1 Warnings: 0 mysql> commit; Query OK, 0 rows affected (0.00 sec) mysql> select * from t; +---+------+ | a | b | +---+------+ | 1 | 10 | | 2 | 100 | | 3 | 12 | +---+------+ 3 rows in set (0.01 sec) mysql> Session 2: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 to server version: 4.1.10-debug-log Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> set autocommit=0; Query OK, 0 rows affected (0.00 sec) mysql> update t set b = 200 where a = 2; ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction mysql> select * from t; +---+------+ | a | b | +---+------+ | 1 | 10 | | 2 | 100 | | 3 | 12 | +---+------+ 3 rows in set (0.00 sec) mysql> commit; Query OK, 0 rows affected (0.00 sec) mysql> select * from t; +---+------+ | a | b | +---+------+ | 1 | 10 | | 2 | 100 | | 3 | 12 | +---+------+ 3 rows in set (0.00 sec) mysql> Regards, Heikki
[16 Feb 2005 8:02]
Heikki Tuuri
Hi! Since there has not been feedback, I am changing the status of this report to Can't repeat. Regards, Heikki