pingcap / pingcap/tidb

`max_execution_time` doesn't contain get tso time

Open
#51,893 4 comments 1 reaction 1 assignee Claimed by @MyonKeminta View on GitHub
affects-5.4 affects-6.0 affects-6.1 affects-6.2 affects-6.3 affects-6.4 affects-6.5 affects-6.6 affects-7.0 affects-7.1 affects-7.2 affects-7.3 affects-7.4 affects-7.5 affects-7.6 affects-8.0 affects-8.1 severity/moderate sig/transaction 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)
from https://asktug.com/t/topic/1023086
1. set max_execution_time = 3000
2. execute sql get tso from pd exceed 3s
![图片](https://github.com/pingcap/tidb/assets/10184437/f0bbb33e-b936-4bd0-8661-30fa5c3116e0)

### 2. What did you expect to see? (Required)
the query should interrupted after 3s
### 3. What did you see instead (Required)
the query run longer than 3s
### 4. What is your TiDB version? (Required)
master

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.