-
Notifications
You must be signed in to change notification settings - Fork 6k
addindex: add import speed metric #60904
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
Conversation
7b1f41f
to
08c4a38
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #60904 +/- ##
================================================
+ Coverage 73.1316% 74.6163% +1.4846%
================================================
Files 1719 1768 +49
Lines 476215 488790 +12575
================================================
+ Hits 348264 364717 +16453
+ Misses 106583 101188 -5395
- Partials 21368 22885 +1517
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
08c4a38
to
296f815
Compare
c6d9b16
to
04855c2
Compare
Co-authored-by: tangenta <tangenta@126.com>
04855c2
to
967aaa8
Compare
pkg/metrics/ddl.go
Outdated
@@ -86,6 +95,10 @@ var ( | |||
AddIndexScanRate *prometheus.HistogramVec | |||
) | |||
|
|||
func init() { | |||
registeredJob = make(map[int64]*metric.Common, 64) |
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.
Could you add a check to CheckIngestLeakageForTest
to ensure the metrics are unregistered?
/retest |
a2177bf
to
74ee9ce
Compare
/retest |
pkg/ddl/backfilling_read_index.go
Outdated
@@ -61,6 +62,8 @@ type readIndexStepExecutor struct { | |||
backend *local.Backend | |||
// pipeline of current running subtask, it's nil when no subtask is running. | |||
currPipe atomic.Pointer[operator.AsyncPipeline] | |||
|
|||
m *lightningmetric.Common |
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.
doitto
tk.MustExec("set @@global.tidb_cloud_storage_uri = '';") | ||
tk.MustExec("alter table t add index idx(a);") | ||
tk.MustExec("alter table t drop index idx;") | ||
|
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.
what's this test for? if you set tk.MustExec("set @@global.tidb_cloud_storage_uri = '';")
. it might break later cases
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.
Let me remove it
Co-authored-by: D3Hunter <jujj603@gmail.com>
8cc88f6
to
3e3ba5b
Compare
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: joechenrh, 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 |
Co-authored-by: Ruihao Chen <joechenrh@gmail.com>
/retest |
/cherrypick release-8.1 |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@CbcWestwolf: new pull request created to branch 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 ti-community-infra/tichi repository. |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@CbcWestwolf: new pull request created to branch 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 ti-community-infra/tichi repository. |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created to branch |
What problem does this PR solve?
Issue Number: close #60925
Problem Summary:
See the description in the issue.
What changed and how does it work?
We can utilize the
common metric
inpkg/lightning
to get the total writing sizeCheck List
Tests
tiup playground --db.binpath=./bin/tidb-server --db 2 --kv 4
sysbench oltp_read_write prepare --mysql-host=127.0.0.1 --mysql-port=4000 --mysql-user=root --mysql-db=test --table-size=100000000
alter table sbtest1 add index i(k, c, pad)
using different adding index ways and write speedSide effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.