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

*: ignore DDL statement for query duration metrics #5093

Merged
merged 3 commits into from
Nov 14, 2017

Conversation

tiancaiamao
Copy link
Contributor

DDL may be quite slow, take it into account would make our query duration metrics less accurate.

@shenli @zimulala @coocood

@tiancaiamao
Copy link
Contributor Author

fix #5074

@shenli
Copy link
Member

shenli commented Nov 14, 2017

LGTM
@coocood @zimulala PTAL

@shenli
Copy link
Member

shenli commented Nov 14, 2017

/run-all-tests

@coocood
Copy link
Member

coocood commented Nov 14, 2017

@tiancaiamao
We can add InDDLStmt field in StatementContext.

@tiancaiamao
Copy link
Contributor Author

How can we get InDDLStmt in server package, if it's add to StatementContext ? @coocood

@coocood
Copy link
Member

coocood commented Nov 14, 2017

We can get SessionVars.

@tiancaiamao
Copy link
Contributor Author

  1. server.QueryCtx interface doesn't have a SessionVars method.
  2. When we record metrics in dispatch(), StatementContext maybe destoryed already.

@coocood
Copy link
Member

coocood commented Nov 14, 2017

LGTM

@zimulala
Copy link
Contributor

Please fix CI.

@hanfei1991 hanfei1991 merged commit 21a8020 into pingcap:master Nov 14, 2017
tiancaiamao added a commit to tiancaiamao/tidb that referenced this pull request Nov 15, 2017
@tiancaiamao tiancaiamao deleted the ddl-query-metric branch March 15, 2018 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants