How to Check Lock Blocking in TiDB?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 如何查询TiDB的锁阻塞情况?

| username: alfred

To improve efficiency, please provide the following information. Clear problem descriptions can be resolved faster:
【TiDB Usage Environment】

【Overview】 Scenario + Problem Overview

【Background】 Operations performed

【Phenomenon】 Business and database phenomena

【Problem】 Current issue encountered

【Business Impact】

【TiDB Version】

【Application Software and Version】

【Attachments】 Relevant logs and configuration information

  • TiUP Cluster Display information
  • TiUP Cluster Edit config information

Monitoring (https://metricstool.pingcap.com/)

  • TiDB-Overview Grafana monitoring
  • TiDB Grafana monitoring
  • TiKV Grafana monitoring
  • PD Grafana monitoring
  • Corresponding module logs (including logs from 1 hour before and after the issue)

If the question is related to performance optimization or troubleshooting, please download the script and run it. Please select all and copy-paste the terminal output results for upload.

| username: xfworld | Original post link

You can refer to the following documents:

| username: alfred | Original post link

Is it possible to kill sessions, processes, or threads like in Oracle or MySQL?

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. No new replies are allowed.