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

Empty slow query text for a stmt that reads tidb_mdl_info #52743

Closed
ekexium opened this issue Apr 19, 2024 · 5 comments · Fixed by #54274
Closed

Empty slow query text for a stmt that reads tidb_mdl_info #52743

ekexium opened this issue Apr 19, 2024 · 5 comments · Fixed by #54274
Labels
affects-8.1 severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@ekexium
Copy link
Contributor

ekexium commented Apr 19, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

Unknown. This seems to be an internal SQL.

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

Slow query should display the query text.

3. What did you see instead (Required)

image

The query text is empty.

4. What is your TiDB version? (Required)

master(8d9e67b)

@ekexium ekexium added the type/bug The issue is confirmed as a bug. label Apr 19, 2024
@ekexium
Copy link
Contributor Author

ekexium commented Apr 19, 2024

cc @wjhuang2016

@ekexium ekexium changed the title Empty slow query content for a stmt that reads tidb_mdl_info Empty slow query text for a stmt that reads tidb_mdl_info Apr 19, 2024
@wjhuang2016
Copy link
Member

It's an internal SQL, but it should not be empty for internal SQL?

@ekexium
Copy link
Contributor Author

ekexium commented Apr 19, 2024

It's an internal SQL, but it should not be empty for internal SQL?

Yes that's my expectation. Do you wanna take a look?

@wjhuang2016
Copy link
Member

It's an internal SQL, but it should not be empty for internal SQL?

Yes that's my expectation. Do you wanna take a look?

I don't have an idea for it.

@ekexium
Copy link
Contributor Author

ekexium commented May 17, 2024

image image image image

Some other cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-8.1 severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants