-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
stmtsummary: add request-units info in statements_summary #49504
Conversation
Hi @glorv. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/cc @songrijie |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #49504 +/- ##
================================================
+ Coverage 70.9585% 71.3962% +0.4377%
================================================
Files 1368 1428 +60
Lines 397088 415974 +18886
================================================
+ Hits 281768 296990 +15222
- Misses 95622 100188 +4566
+ Partials 19698 18796 -902
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/retest |
@glorv: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
pkg/executor/adapter.go
Outdated
@@ -1950,6 +1954,9 @@ func (a *ExecStmt) SummaryStmt(succ bool) { | |||
Prepared: a.isPreparedStmt, | |||
KeyspaceName: keyspaceName, | |||
KeyspaceID: keyspaceID, | |||
RUDetail: ruDetail, | |||
// TODO: use sessVars.StmtCtx.ResourceGroupName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
already use sessVars.StmtCtx.ResourceGroupName
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@nolouch: Your lgtm message is repeated, so it is ignored. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@tangenta PTAL, thanks |
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest LGTM
go.mod
Outdated
@@ -103,7 +103,7 @@ require ( | |||
github.com/stretchr/testify v1.8.4 | |||
github.com/tdakkota/asciicheck v0.2.0 | |||
github.com/tiancaiamao/appdash v0.0.0-20181126055449-889f96f722a2 | |||
github.com/tikv/client-go/v2 v2.0.8-0.20231219052137-6f9ba8327b75 | |||
github.com/tikv/client-go/v2 v2.0.8-0.20231220023527-4ce1e45671b3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The client-go version is ahead of this. pls merge master.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
[LGTM Timeline notifier]Timeline:
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CabinfeverB, nolouch, tangenta The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
In response to a cherrypick label: new pull request created to branch |
In response to a cherrypick label: failed to apply #49504 on top of branch "release-7.6":
|
In response to a cherrypick label: failed to apply #49504 on top of branch "release-7.6":
|
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created to branch |
In response to a cherrypick label: failed to apply #49504 on top of branch "release-7.6":
|
What problem does this PR solve?
Issue Number: ref #49318
Problem Summary:
What changed and how does it work?
Add following 7 columns in
information_schema.statements_summary
:And add
resource_group_name
in statements_summary's aggration key, so after this change, the same sql executed by under different resource groups with be collected as different record.Result example:
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.