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 expensive "use xx" log when connection is high #59206

Open
lilinghai opened this issue Jan 26, 2025 · 0 comments
Open

There are expensive "use xx" log when connection is high #59206

lilinghai opened this issue Jan 26, 2025 · 0 comments
Labels
type/bug The issue is confirmed as a bug.

Comments

@lilinghai
Copy link
Contributor

lilinghai commented Jan 26, 2025

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

use libmysqlclient C API in sysbench or use golang mysql driver
When the connection count is about 10k per tidb instance, there are many expensive "use xx" logs

[2024/12/27 03:16:18.596 +00:00] [WARN] [expensivequery.go:153] [expensive_query] [cost_time=60.025506506s] [conn=2162767018] [user=root] [txn_start_ts=0] [mem_max="0 Bytes (0 Bytes)"] [sql="use `sbtest`"] [session_alias=] ["affected rows"=0]
[2024/12/27 03:16:18.596 +00:00] [WARN] [expensivequery.go:153] [expensive_query] [cost_time=60.078729479s] [conn=2162766650] [user=root] [txn_start_ts=0] [mem_max="0 Bytes (0 Bytes)"] [sql="use `sbtest`"] [session_alias=] ["affected rows"=0]

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

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

master

@lilinghai lilinghai added the type/bug The issue is confirmed as a bug. label Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

1 participant