Skip to content

Commit

Permalink
Add MDL for DDL troubleshooting (pingcap#16207)
Browse files Browse the repository at this point in the history
  • Loading branch information
hfxsd authored Jan 22, 2024
1 parent 63111b1 commit 85d0150
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tidb-troubleshooting-map.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ Refer to [5 PD issues](#5-pd-issues).

- 3.1.2 TiDB DDL job hangs or executes slowly (use `admin show ddl jobs` to check DDL progress)

- Cause 1: Network issue with other components (PD/TiKV).
- Cause 1: TiDB introduces the [metadata lock](/metadata-lock.md) in v6.3.0, and enables it by default in v6.5.0 and later versions. If the table involved in the DDL operation has intersections with the table involved in the uncommitted transaction, the DDL operation is blocked until the transaction is committed or rolled back.

- Cause 2: Early versions of TiDB (earlier than v3.0.8) have heavy internal load because of a lot of goroutine at high concurrency.
- Cause 2: Network issue with other components (PD/TiKV).

- Cause 3: In early versions (v2.1.15 & versions < v3.0.0-rc1), PD instances fail to delete TiDB keys, which causes every DDL change to wait for two leases.
- Cause 3: Early versions of TiDB (earlier than v3.0.8) have heavy internal load because of a lot of goroutine at high concurrency.

- Cause 4: In early versions (v2.1.15 & versions < v3.0.0-rc1), PD instances fail to delete TiDB keys, which causes every DDL change to wait for two leases.

- For other unknown causes, [report a bug](https://github.com/pingcap/tidb/issues/new?labels=type%2Fbug&template=bug-report.md).

Expand Down

0 comments on commit 85d0150

Please sign in to comment.