If a transaction holds a lock on a table for over xx minutes, abort/rollback the transaction & release the lock.
Problem i am trying to solve: One of the tables was locked for over an hour, to execute a slow update query. All other transactions which required locking the same table started failing since it could not acquire a lock.
The slow query was fixed, but wondering if there is a failsafe switch "max_lock_timeout" or so which can release a lock if it exceeds certain threshold.