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

There are a lot of logs about "limit executor close takes a long time" #52771

Open
crazycs520 opened this issue Apr 19, 2024 · 4 comments
Open
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@crazycs520
Copy link
Contributor

crazycs520 commented Apr 19, 2024

# rg "limit executor close takes a long time" tidb.log
12789:[2024/04/19 19:10:22.385 +08:00] [INFO] [executor.go:1424] ["limit executor close takes a long time"] [elapsed=2.107365ms]
12791:[2024/04/19 19:10:22.628 +08:00] [INFO] [executor.go:1424] ["limit executor close takes a long time"] [elapsed=1.822869ms]
12801:[2024/04/19 19:10:23.781 +08:00] [INFO] [executor.go:1424] ["limit executor close takes a long time"] [elapsed=4.897655ms]
...
13561:[2024/04/19 19:15:47.328 +08:00] [INFO] [executor.go:1424] ["limit executor close takes a long time"] [elapsed=1.374016ms]
...

# rg "limit executor close takes a long time" tidb.log | wc
    205    2665   25251

Look like the log is useless, can we remove it?

TiDB Version

nightly, 72e5460

@crazycs520 crazycs520 added the type/enhancement The issue or PR belongs to an enhancement. label Apr 19, 2024
@crazycs520
Copy link
Contributor Author

@tiancaiamao PTAL

@time-and-fate
Copy link
Member

This log has been useful in some internal emulation workloads. Maybe we can increase the threshold instead of removing it directly.

Related:
#50377
#40441 (comment)

@crazycs520
Copy link
Contributor Author

Because this log contains so little information, there is no conn id, txn_ts, nor can we locate which query caused this.

If it's for performance optimization, might it be more useful to grab a profile with proof?

If it is use to locate a slow query, it is more appropriate to obtain more information, such as conn id, txn_ts, etc.?

@tiancaiamao
Copy link
Contributor

Maybe we can increase the threshold instead of removing it directly.

+1

What's the workload you are running? @crazycs520

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

No branches or pull requests

3 participants