Bug #49461 | No warning/failure when transaction cannot be commited | ||
---|---|---|---|
Submitted: | 4 Dec 2009 15:17 | Modified: | 18 Dec 2009 10:36 |
Reporter: | Todd Farmer (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Workbench | Severity: | S1 (Critical) |
Version: | 5.2.10 r4680 | OS: | Windows (XP) |
Assigned to: | Sergei Tkachenko | CPU Architecture: | Any |
[4 Dec 2009 15:17]
Todd Farmer
[8 Dec 2009 14:10]
Susanne Ebrecht
You are right here and data lost can happen ... A simple test case: CREATE TABLE t(i INTEGER) ENGINE=INNODB; START TRANSACTION; INSERT INTO t VALUES(1); INSERT INTO t VALUES(2); root# killall -9 mysqld MySQL now will rollback the whole transaction ... you need to do the two inserts again. When you don't recognise that server is gone and press commit then you don't recognise the rollback and the data are lost.
[16 Dec 2009 14:13]
Sergei Tkachenko
From now when not in auto-commit mode WB doesn't restore connection automatically, user has to reconnect manually by pressing corresponding toolbar button.
[17 Dec 2009 10:46]
Sergei Tkachenko
fixed defected reported by johannes
[18 Dec 2009 9:34]
Johannes Taxacher
fixed in repository. will be included in 5.2.11
[18 Dec 2009 10:36]
Tony Bedford
An entry has been added to the 5.2.11 changelog: If a connection failed MySQL Workbench reconnected silently. This caused problems with transactions. If changes were made to a table, before a COMMIT, and the connection lost, then MySQL Workbench would reconnect silently and allow the user to COMMIT. However, it did not warn that this COMMIT was on a new connection, and that the COMMIT would have no effect.