[MDEV-4722] regression - update statement hangs server on MariaDB 10.0.3 Created: 2013-06-27  Updated: 2013-08-16  Resolved: 2013-08-16

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.3
Fix Version/s: 10.0.4

Type: Bug Priority: Major
Reporter: Michiel Beijen Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: upstream
Environment:

debian


Issue Links:
Blocks
is blocked by MDEV-3932 5.6 merge Closed
Relates
relates to MDEV-4721 Circular References Cause MariaDB 10.... Closed

 Description   

The update statement in the snippet below hangs reproducibly on MariaDB 10.0.3, I tested both on Debian and Windows. On 5.5.31 it just works.

CREATE TABLE valid (
id SMALLINT NOT NULL AUTO_INCREMENT,
name VARCHAR (200) NOT NULL,
create_time DATETIME NOT NULL,
create_by INTEGER NOT NULL,
change_time DATETIME NOT NULL,
change_by INTEGER NOT NULL,
PRIMARY KEY(id),
UNIQUE INDEX valid_name (name)
);
CREATE TABLE users (
id INTEGER NOT NULL AUTO_INCREMENT,
login VARCHAR (200) NOT NULL,
pw VARCHAR (64) NOT NULL,
title VARCHAR (50) NULL,
first_name VARCHAR (100) NOT NULL,
last_name VARCHAR (100) NOT NULL,
valid_id SMALLINT NOT NULL,
create_time DATETIME NOT NULL,
create_by INTEGER NOT NULL,
change_time DATETIME NOT NULL,
change_by INTEGER NOT NULL,
PRIMARY KEY(id),
UNIQUE INDEX users_login (login)
);
INSERT INTO valid (id, name, create_by, create_time, change_by, change_time)
VALUES
(1, 'valid', 1, current_timestamp, 1, current_timestamp);
INSERT INTO users (id, first_name, last_name, login, pw, valid_id, create_by, create_time, change_by, change_time)
VALUES
(1, 'Admin', 'OTRS', 'root@localhost', 'roK20XGbWEsSM', 1, 1, current_timestamp, 1, current_timestamp);
ALTER TABLE valid ADD CONSTRAINT FK_valid_create_by_id FOREIGN KEY (create_by) REFERENCES users (id);
ALTER TABLE valid ADD CONSTRAINT FK_valid_change_by_id FOREIGN KEY (change_by) REFERENCES users (id);
ALTER TABLE users ADD CONSTRAINT FK_users_create_by_id FOREIGN KEY (create_by) REFERENCES users (id);
ALTER TABLE users ADD CONSTRAINT FK_users_change_by_id FOREIGN KEY (change_by) REFERENCES users (id);
ALTER TABLE users ADD CONSTRAINT FK_users_valid_id_id FOREIGN KEY (valid_id) REFERENCES valid (id);
update users set pw = 'foo' where id = 1;



 Comments   
Comment by Elena Stepanova [ 2013-06-27 ]

Also reproducible on MySQL 5.6.5 (that's the version of InnoDB that MariaDB 10.0.3 has), but not reproducible on MySQL 5.6.11; so, the chances are the fix will be merged into MariaDB 10.0.4 along with the InnoDB merge that is going on now.

I will keep it open and re-check it as soon as the merge is finished.

See also https://mariadb.atlassian.net/browse/MDEV-4721

Comment by Elena Stepanova [ 2013-07-17 ]

Does not hang on 10.0-monty after the merge

revision-id: sergii@pisem.net-20130715205006-d0u5u35svmfdpdt4
revno: 3635
branch-nick: 10.0-monty

Comment by Elena Stepanova [ 2013-08-16 ]

Fixed by the InnoDB 5.6.10 merge

Generated at Thu Feb 08 06:58:38 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.