Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql: add TiDB error code #728

Merged
merged 2 commits into from
May 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sql/error.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ TiDB 兼容 MySQL 的错误码,在大多数情况下,返回和 MySQL 一样

| 错误码 | 说明 |
| --------------------- | -------------------------------------------------- |
| 8001 | 请求使用的内存超过 TiDB 内存使用的阈值限制 |
| 8002 | 带有 `SELECT FOR UPDATE` 语句的事务,在遇到写入冲突时,为保证一致性无法进行重试,事务将进行回滚并返回该错误 |
| 9001 | 请求 PD 超时,请检查 PD Server 状态/监控/日志以及 TiDB Server 与 PD Server 之间的网络 |
| 9002 | 请求 TiKV 超时,请检查 TiKV Server 状态/监控/日志以及 TiDB Server 与 TiKV Server 之间的网络 |
| 9003 | TiKV 操作繁忙,一般出现在数据库负载比较高时,请检查 TiKV Server 状态/监控/日志 |
Expand All @@ -21,7 +23,6 @@ TiDB 兼容 MySQL 的错误码,在大多数情况下,返回和 MySQL 一样
| 9006 | GC Life Time 间隔时间过短,长事务本应读到的数据可能被清理了,应增加GC Life Time |
| 9500 | 单个事务过大,原因及解决方法请参考[这里](../FAQ.md#出现-transaction-too-large-报错怎么办) |


## 故障诊断

参见[故障诊断文档](../trouble-shooting.md)以及 [FAQ](../FAQ.md)。