Storages: Fix the statistics of user_read_bytes and add metrics#10396
Storages: Fix the statistics of user_read_bytes and add metrics#10396ti-chi-bot[bot] merged 9 commits intopingcap:masterfrom
Conversation
|
/retest |
| { | ||
| if (read_tag != ReadTag::Query && read_tag != ReadTag::LMFilter && read_tag != ReadTag::MVCC) | ||
| return; | ||
| user_read_bytes += bytes; |
There was a problem hiding this comment.
Now user_read_byte contains the Query, LMFilter and MVCC. Maybe split the number of MVCC bytes to be a standalone variable so that we can tell how many bytes are read for MVCC and how many bytes are for Query+LMFilter?
There was a problem hiding this comment.
I split user_read_bytes into query_read_bytes and mvcc_read_bytes.
user_read_bytes in tipb equals mvcc_read_bytes plus query_read_bytes. Subsequent changes will be needed for both tipb and tidb.
Co-authored-by: JaySon <tshent@qq.com>
|
/retest |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JaySon-Huang, Lloyd-Pottiger The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
|
/retest |
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: ref #10380
ConcatSkippableBlockInputStreamDeltaMergeBlockInputStream. ThegetPlacedStreammethod sets theneed_row_idparameter to false when obtaining the stable stream. Therefore, in ConcatSkippableBlockInputStream,need_row_idcannot be used to determine whether MVCC is involved.DeltaValueReadergetInputStreamNormalto read data, delta data is read throughDeltaValueReader. Thus,DeltaValueReaderneeds to add statistics foruser_read_bytes.user_read_bytesand metrics withinScanContext.ReadTag::Internal.What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note