Consider the scenario that you execute a query. You expect it to
be fast - typically subsecond - but now it take not return until
after 50 seconds (innodb_lock_wait_timeout seconds) and then it
returns with an error:
mysql> UPDATE world.City SET Population = Population + 999 WHERE ID = 130; ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction
You continue to investigate the issue using the sys.innodb_lock_waits view or the underlying Information Schema tables (INNODB_TRX, INNODB_LOCKS and INNODB_LOCK_WAITS).
Note: …
[Read more]