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

Var tidb_stmt_summary_max_stmt_count does not work #27078

Closed
jingshanglu opened this issue Aug 10, 2021 · 3 comments
Closed

Var tidb_stmt_summary_max_stmt_count does not work #27078

jingshanglu opened this issue Aug 10, 2021 · 3 comments
Labels
severity/minor sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@jingshanglu
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

set global tidb_stmt_summary_max_stmt_count=1;
drop table if exists t_1;
drop table if exists t_2;
select count(*) from information_schema.statements_summary;

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

mysql> select count(*) from information_schema.statements_summary;
+----------+
| count(*) |
+----------+
|        1 |
+----------+

3. What did you see instead (Required)

mysql> select count(*) from information_schema.statements_summary;
+----------+
| count(*) |
+----------+
|        2 |
+----------+

4. What is your TiDB version? (Required)

master
commit : (deb6dad)

@jingshanglu jingshanglu added type/bug The issue is confirmed as a bug. severity/major sig/execution SIG execution labels Aug 10, 2021
@ClSlaid
Copy link
Contributor

ClSlaid commented Aug 12, 2021

this is a new row of records in statements summary, you can check #25031 for details.
docs are on the way.

@wshwsh12 wshwsh12 added sig/sql-infra SIG: SQL Infra and removed sig/execution SIG execution labels Aug 12, 2021
@bb7133
Copy link
Member

bb7133 commented Aug 12, 2021

Change it to 'minor' because according to #25031, the behavior is expected(but anti-intuitive)

@bb7133 bb7133 closed this as completed Aug 12, 2021
@ti-srebot
Copy link
Contributor

Please edit this comment or add a new comment to complete the following information

Not a bug

  1. Remove the 'type/bug' label
  2. Add notes to indicate why it is not a bug

Duplicate bug

  1. Add the 'type/duplicate' label
  2. Add the link to the original bug

Bug

Note: Make Sure that 'component', and 'severity' labels are added
Example for how to fill out the template: #20100

1. Root Cause Analysis (RCA) (optional)

2. Symptom (optional)

3. All Trigger Conditions (optional)

4. Workaround (optional)

5. Affected versions

6. Fixed versions

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

No branches or pull requests

7 participants