yugabyte / yugabyte-db

YugabyteDB - the cloud native distributed SQL database for mission-critical applications.
https://www.yugabyte.com
Other
9.04k stars 1.08k forks source link

[DocDb] Optimize deadlock detection to detect conflicts local to tserver when present #13586

Open robertsami opened 2 years ago

robertsami commented 2 years ago

Jira Link: DB-3162 We can detect some deadlocks without relying on distributed deadlock detection by just looking at local wait-for relationships. We can do this for a new waiting transaction /before/ sending information about this waiting transaction to the txn coordinator

rthallamko3 commented 8 months ago

This is important, if the performance impact of deadlock detection is high and if there is a need to reduce it.