Skip to content

Commit

Permalink
faq: update the description of "Information schema is out of date" (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tangenta committed Sep 20, 2024
1 parent 74338d7 commit cb663aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faq/sql-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ TiDB 在执行 SQL 语句时,会根据隔离级别确定一个对象的 `schem

### 触发 Information schema is out of date 错误的原因?

在 v6.5.0 之前,当执行 DML 时,TiDB 超过一个 DDL lease 时间(默认 45s)没能加载到最新的 schema 就可能会报 `Information schema is out of date` 的错误。遇到此错的可能原因如下:
当执行 DML 时,TiDB 超过一个 DDL lease 时间(默认 45s)没能加载到最新的 schema 就可能会报 `Information schema is out of date` 的错误。遇到此错的可能原因如下:

- 执行此 DML 的 TiDB 被 kill 后准备退出,且此 DML 对应的事务执行时间超过一个 DDL lease,在事务提交时会报这个错误。
- TiDB 在执行此 DML 时,有一段时间内连不上 PD 或者 TiKV,导致 TiDB 超过一个 DDL lease 时间没有 load schema,或者导致 TiDB 断开与 PD 之间带 keep alive 设置的连接。
Expand Down

0 comments on commit cb663aa

Please sign in to comment.