pingcap / pingcap/tidb

Internal queries didn't record `RU` usage in the slow log

Open
#62,964 0 comments 0 reactions 1 assignee Claimed by @YangKeao View on GitHub
severity/minor sig/sql-infra type/bug
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Bug Report

Please answer these questions before submitting your issue. Thanks!

### 1. Minimal reproduce step (Required)

1. Mock some latency for internal sessions.
2. Read the slow log, the RU is always 0:

![Image](https://github.com/user-attachments/assets/902dbce7-9a18-4cf3-9f36-b14e0530ff39)

### 2. What did you expect to see? (Required)

The RU is not zero if the query is big

### 3. What did you see instead (Required)

The RU is always 0.

### 4. What is your TiDB version? (Required)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.