gh-ost icon indicating copy to clipboard operation
gh-ost copied to clipboard

FATAL Error 1205: Lock wait timeout exceeded; try restarting transaction

Open digdeep126 opened this issue 7 years ago • 5 comments

Copy: 18942799/18942799 100.0%; Applied: 5207; Backlog: 0/1000; Time: 3h8m10s(total), 3h0m55s(copy); streamer: mysql-bin.001096:428591771; State: migrating; ETA: due 2019-08-03 14:56:43 ERROR Error 1205: Lock wait timeout exceeded; try restarting transaction 2019-08-03 14:56:43 INFO Looking for magic cut-over table 2019-08-03 14:56:43 ERROR Error 1205: Lock wait timeout exceeded; try restarting transaction 2019-08-03 14:56:43 INFO Dropping magic cut-over table 2019-08-03 14:56:43 INFO Dropping table cxxb._btjc01_del 2019-08-03 14:56:43 INFO Table dropped 2019-08-03 14:56:44 INFO Grabbing voluntary lock: gh-ost.45487136.lock 2019-08-03 14:56:44 INFO Setting LOCK timeout as 6 seconds 2019-08-03 14:56:44 INFO Looking for magic cut-over table 2019-08-03 14:56:44 INFO Creating magic cut-over table cxxb._btjc01_del 2019-08-03 14:56:45 INFO Magic cut-over table created 2019-08-03 14:56:45 INFO Locking cxxb.btjc01, cxxb._btjc01_del Copy: 18942799/18942799 100.0%; Applied: 5207; Backlog: 0/1000; Time: 3h8m15s(total), 3h0m55s(copy); streamer: mysql-bin.001096:428614158; State: migrating; ETA: due Copy: 18942799/18942799 100.0%; Applied: 5207; Backlog: 0/1000; Time: 3h8m20s(total), 3h0m55s(copy); streamer: mysql-bin.001096:428644772; State: migrating; ETA: due 2019-08-03 14:56:51 ERROR Error 1205: Lock wait timeout exceeded; try restarting transaction 2019-08-03 14:56:51 INFO Looking for magic cut-over table 2019-08-03 14:56:51 ERROR Error 1205: Lock wait timeout exceeded; try restarting transaction 2019-08-03 14:56:51 INFO Dropping magic cut-over table 2019-08-03 14:56:51 INFO Dropping table cxxb._btjc01_del 2019-08-03 14:56:51 INFO Table dropped 2019-08-03 14:56:51 INFO Removing socket file: /tmp/gh-ost.cxxb.btjc01.sock 2019-08-03 14:56:51 INFO Tearing down inspector 2019-08-03 14:56:51 FATAL Error 1205: Lock wait timeout exceeded; try restarting transaction 2019-08-03 14:56:51 INFO Tearing down applier 2019-08-03 14:56:51 INFO Tearing down streamer 2019-08-03 14:56:51 INFO Tearing down throttler 2019-08-03 14:56:51 FATAL Error 1205: Lock wait timeout exceeded; try restarting transaction [root@mysql01 home]# [root@mysql01 home]#

digdeep126 avatar Aug 03 '19 07:08 digdeep126

Ditto. And, The execution result of SELECT * FROM information_schema.innodb_trx; is empty. in MySQL 8.0.13.

linhongzhao321 avatar Aug 06 '19 09:08 linhongzhao321

Hello, I often encounter similar problems. Can you add capture of specific waiting events in the program to facilitate intuitive understanding of the causes of this problem?

xiaoxuanfeng avatar Sep 24 '19 02:09 xiaoxuanfeng

Serving on unix socket: /tmp/gh-ost.devops.ddl_list.sock Copy: 0/0 100.0%; Applied: 0; Backlog: 1/1000; Time: 33s(total), 0s(copy); streamer: mysql-bin.001066:115231761; State: migrating; ETA: due Copy: 0/0 100.0%; Applied: 0; Backlog: 0/1000; Time: 33s(total), 0s(copy); streamer: mysql-bin.001066:115231761; State: migrating; ETA: due Copy: 0/0 100.0%; Applied: 0; Backlog: 0/1000; Time: 34s(total), 0s(copy); streamer: mysql-bin.001066:115257937; State: migrating; ETA: due Copy: 0/0 100.0%; Applied: 0; Backlog: 0/1000; Time: 35s(total), 0s(copy); streamer: mysql-bin.001066:115265827; State: migrating; ETA: due Copy: 0/0 100.0%; Applied: 0; Backlog: 0/1000; Time: 36s(total), 0s(copy); streamer: mysql-bin.001066:115272216; State: migrating; ETA: due 2019-10-21 18:00:37 ERROR Error 1205: Lock wait timeout exceeded; try restarting transaction

mysql version:8.0.15

Ditto. And, The execution result of SELECT * FROM information_schema.innodb_trx; is empty.

5sdba avatar Oct 21 '19 10:10 5sdba

We also encounter this not infrequently. Anyone have any ideas?

alecthomas avatar Feb 20 '20 19:02 alecthomas

This seems to be a problem with --exact-rowcount. Try disabling that option.

zhxnlai avatar Mar 10 '20 20:03 zhxnlai