Skip to content

Commit

Permalink
Fix TiFlash critical logs (pingcap#4682)
Browse files Browse the repository at this point in the history
* fix

* Apply suggestions from code review

Co-authored-by: Ran <[email protected]>

* Update tiflash/maintain-tiflash.md

Co-authored-by: Ran <[email protected]>
  • Loading branch information
leiysky and ran-huang authored Oct 15, 2020
1 parent 87b672a commit 17e971e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tiflash/maintain-tiflash.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,24 @@ aliases: ['/docs-cn/dev/tiflash/maintain-tiflash/','/docs-cn/dev/reference/tifla

## TiFlash 重要日志介绍

为了更好地兼容 TiDB 的日志格式,TiFlash 在 v4.0.5 中修改了原有的日志格式,因此会有两个不同版本的日志。

如果你的 TiDB 集群版本 < 4.0.5:

| 日志信息 | 日志含义 |
|---------------|---------------------|
| [ 23 ] `<Information>` KVStore: Start to persist [region 47, applied: term 6 index 10] | 在 TiFlash 中看到类似日志代表数据开始同步(该日志开头方括号内的数字代表线程号,下同) |
| [ 30 ] `<Debug>` CoprocessorHandler: grpc::Status DB::CoprocessorHandler::execute() | Handling DAG request,该日志代表 TiFlash 开始处理一个 Coprocessor 请求 |
| [ 30 ] `<Debug>` CoprocessorHandler: grpc::Status DB::CoprocessorHandler::execute() | Handle DAG request done,该日志代表 TiFlash 完成 Coprocessor 请求的处理 |

如果你的 TiDB 集群版本 >= 4.0.5:

| 日志信息 | 日志含义 |
|---------------|-------------------|
| [INFO] [`<unknown>`] ["KVStore: Start to persist [region 47, applied: term 6 index 10]"] [thread_id=23] | 在 TiFlash 中看到类似日志代表数据开始同步 |
| [DEBUG] [`<unknown>`] ["CoprocessorHandler: grpc::Status DB::CoprocessorHandler::execute(): Handling DAG request"] [thread_id=30] | 该日志代表 TiFlash 开始处理一个 Coprocessor 请求 |
| [DEBUG] [`<unknown>`] ["CoprocessorHandler: grpc::Status DB::CoprocessorHandler::execute(): Handle DAG request done"] [thread_id=30] | 该日志代表 TiFlash 完成 Coprocessor 请求的处理 |

你可以找到一个 Coprocessor 请求的开始或结束,然后通过日志前面打印的线程号找到该 Coprocessor 请求的其他相关日志。

## TiFlash 系统表
Expand Down

0 comments on commit 17e971e

Please sign in to comment.