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

feat: support the new compact RPC request #4885

Merged
merged 24 commits into from
May 18, 2022
Merged

feat: support the new compact RPC request #4885

merged 24 commits into from
May 18, 2022

Conversation

breezewish
Copy link
Member

@breezewish breezewish commented May 13, 2022

What problem does this PR solve?

Issue Number: ref #4897

Problem Summary:

This PR adds the implementation of the Compact RPC. The Compact RPC is defined as:

The TiDB PR to utilize this RPC endpoint: pingcap/tidb#34741

What is changed and how it works?

New:

  • The impl of Compact RPC: Flash/Management/ManualCompact.cpp|h.

  • Public API to compact one segment in DeltaTree: Storages/DeltaMerge/*: Mainly std::optional<DM::RowKeyRange> mergeDeltaBySegment(const Context & context, const DM::RowKeyValue & start_key);

  • Unit tests about the compact RPC and compact one segment: See tests.

Change:

  • Moved tiflashErrorCodeToGrpcStatusCode from the CoprocessorHandler to a new shared utility called ServiceUtils, so that Compact RPC can use it as well.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

None, as the user interface is in the TiDB side.

None

@ti-chi-bot
Copy link
Member

ti-chi-bot commented May 13, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • JaySon-Huang
  • lidezhu

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added do-not-merge/needs-linked-issue release-note-none Denotes a PR that doesn't merit a release note. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels May 13, 2022
@ti-chi-bot ti-chi-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 13, 2022
@breezewish
Copy link
Member Author

breezewish commented May 16, 2022

@flowbehappy @lidezhu @JaySon-Huang The WIP in the title is only reserved for kvproto reference changes. There are no code base WIP remaining in this PR. Please take a review when you are free, thanks!

The kvproto change has been merged into the PR.

dbms/src/Storages/IManageableStorage.h Outdated Show resolved Hide resolved
dbms/src/Storages/Page/PageUtil.h Outdated Show resolved Hide resolved
auto dm_context = newDMContext(context, context.getSettingsRef(), /*tracing_id*/ "mergeDeltaBySegment");
if (start_key.is_common_handle != dm_context->is_common_handle)
{
return std::nullopt;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simply throw an exception. It is unexpected status.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The start_key comes from the RPC request. From the TiFlash perspective maybe better to think all RPC callers to be a bad guy in order to isolate component errors. Otherwise a mistake in TiDB may cause TiFlash to crash.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or may be better to leave this check in the ManualCompactManager? We could keep a property that all calls to DeltaMergeStore should be checked before calling.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, it is better to rise some serious thing to notify the unexpected status, as it implies bugs usually. How about returning errors to TiDB when there are invalid params?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW throw exception here should not crash TiFlash.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have moved this check to the TiFlash service side. Please take a look again, thanks!

Also added a test in the DM to ensure that, when common handle is given for a int handle table, there will be an exception thrown.

@@ -1027,6 +1025,43 @@ void DeltaMergeStore::mergeDeltaAll(const Context & context)
}
}

std::optional<DM::RowKeyRange> DeltaMergeStore::mergeDeltaBySegment(const Context & context, const RowKeyValue & start_key)
{
auto dm_context = newDMContext(context, context.getSettingsRef(), /*tracing_id*/ "mergeDeltaBySegment");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should use updateGCSafePoint before creating the DMContext

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And add the value of latest_gc_safepoint to the "tracing_id"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

Just curious, if we don't update the safepoint here, what will happen in worst case?

Copy link
Member Author

@breezewish breezewish May 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW updating GC safepoint here means we will send 1 PD request for every segment. Is this fine? (Do we need something like throttle?)

Copy link
Member Author

@breezewish breezewish May 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another solution is to let updateGCSafePoint to be public, so that it will only get called once per compact request. I'm not sure whether this might leak the encapsulation.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, if we don't update the safepoint here, what will happen in worst case?

When the origin segment doesn't have any data in delta, and the stable contains rows that are older than gc safepoint. Even after we apply "merge delta" on the segment, we take some resources to rewrite the stable data (but it is effectively the same as before), but we don't get any performance improvement.

Comment on lines +366 to +367
M(SettingUInt64, manual_compact_max_concurrency, 10, "Max concurrent tasks. It should be larger than pool size.") \
M(SettingUInt64, manual_compact_more_until_ms, 60000, "Continuously compact more segments until reaching specified elapsed time. If 0 is specified, only one segment will be compacted each round.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems these two configs are not shown in the "config-template.toml" file?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, they are advanced config that normal users should not modify.

@breezewish breezewish changed the title [WIP] feat: support the new compact RPC request feat: support the new compact RPC request May 17, 2022
@ti-chi-bot ti-chi-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 17, 2022
@lidezhu
Copy link
Contributor

lidezhu commented May 18, 2022

/run-all-tests

1 similar comment
@breezewish
Copy link
Member Author

/run-all-tests

Copy link
Contributor

@lidezhu lidezhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels May 18, 2022
@breezewish
Copy link
Member Author

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented May 18, 2022

Coverage for changed files

Filename                                                     Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Common/FailPoint.cpp                                             452                52    88.50%           6                 0   100.00%          56                 4    92.86%         150                52    65.33%
Common/TiFlashMetrics.h                                           18                 0   100.00%          11                 0   100.00%          47                 1    97.87%           8                 0   100.00%
Flash/Coprocessor/DAGUtils.cpp                                   338               200    40.83%          43                16    62.79%         620               375    39.52%         406               237    41.63%
Flash/Coprocessor/DAGUtils.h                                       3                 0   100.00%           1                 0   100.00%          12                 0   100.00%           2                 0   100.00%
Flash/CoprocessorHandler.cpp                                     138               138     0.00%           5                 5     0.00%         129               129     0.00%          54                54     0.00%
Flash/FlashService.h                                               4                 4     0.00%           4                 4     0.00%          14                14     0.00%           0                 0         -
Flash/Management/ManualCompact.cpp                               140                54    61.43%           9                 0   100.00%         167                23    86.23%          68                32    52.94%
Flash/Management/ManualCompact.h                                   1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Flash/Management/tests/gtest_manual_compact.cpp                  905               315    65.19%          16                 0   100.00%         251                 4    98.41%         264               141    46.59%
Flash/ServiceUtils.cpp                                            13                13     0.00%           1                 1     0.00%           8                 8     0.00%          10                10     0.00%
Interpreters/InterpreterManageQuery.cpp                           11                11     0.00%           1                 1     0.00%          43                43     0.00%          14                14     0.00%
Interpreters/Settings.h                                            1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Storages/DeltaMerge/DeltaMergeStore.cpp                         1422               484    65.96%          67                 5    92.54%        2018               445    77.95%         822               374    54.50%
Storages/DeltaMerge/DeltaMergeStore.h                             41                12    70.73%          19                 2    89.47%          91                28    69.23%          42                10    76.19%
Storages/DeltaMerge/RowKeyRange.h                                263                52    80.23%          65                13    80.00%         513                98    80.90%         166                47    71.69%
Storages/DeltaMerge/tests/MultiSegmentTestUtil.h                 286                74    74.13%           5                 0   100.00%          72                 0   100.00%          76                36    52.63%
Storages/DeltaMerge/tests/dm_basic_include.h                     199                18    90.95%          19                 1    94.74%         326                43    86.81%         118                24    79.66%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp        6355              1719    72.95%          45                 1    97.78%        2895                98    96.61%        2100               937    55.38%
Storages/IManageableStorage.h                                     20                18    10.00%          20                18    10.00%          38                36     5.26%           0                 0         -
Storages/StorageDeltaMerge.cpp                                   679               328    51.69%          58                26    55.17%        1304               722    44.63%         378               243    35.71%
Storages/StorageDeltaMerge.h                                      11                 6    45.45%          11                 6    45.45%          17                 8    52.94%           0                 0         -
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                          11300              3498    69.04%         408                99    75.74%        8623              2079    75.89%        4678              2211    52.74%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18201      9784             46.24%    203665  97892        51.93%

full coverage report (for internal network access only)

@breezewish
Copy link
Member Author

/merge

@ti-chi-bot
Copy link
Member

@breezewish: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

You only need to trigger /merge once, and if the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

If you have any questions about the PR merge process, please refer to pr process.

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.

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 2d907ec

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label May 18, 2022
@sre-bot
Copy link
Collaborator

sre-bot commented May 18, 2022

Coverage for changed files

Filename                                                     Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Common/FailPoint.cpp                                             452                52    88.50%           6                 0   100.00%          56                 4    92.86%         150                52    65.33%
Common/TiFlashMetrics.h                                           18                 0   100.00%          11                 0   100.00%          47                 1    97.87%           8                 0   100.00%
Flash/Coprocessor/DAGUtils.cpp                                   338               200    40.83%          43                16    62.79%         620               375    39.52%         406               237    41.63%
Flash/Coprocessor/DAGUtils.h                                       3                 0   100.00%           1                 0   100.00%          12                 0   100.00%           2                 0   100.00%
Flash/CoprocessorHandler.cpp                                     138               138     0.00%           5                 5     0.00%         129               129     0.00%          54                54     0.00%
Flash/FlashService.h                                               4                 4     0.00%           4                 4     0.00%          14                14     0.00%           0                 0         -
Flash/Management/ManualCompact.cpp                               140                54    61.43%           9                 0   100.00%         167                23    86.23%          68                32    52.94%
Flash/Management/ManualCompact.h                                   1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Flash/Management/tests/gtest_manual_compact.cpp                  905               315    65.19%          16                 0   100.00%         251                 4    98.41%         264               141    46.59%
Flash/ServiceUtils.cpp                                            13                13     0.00%           1                 1     0.00%           8                 8     0.00%          10                10     0.00%
Interpreters/InterpreterManageQuery.cpp                           11                11     0.00%           1                 1     0.00%          43                43     0.00%          14                14     0.00%
Interpreters/Settings.h                                            1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Storages/DeltaMerge/DeltaMergeStore.cpp                         1422               484    65.96%          67                 5    92.54%        2018               445    77.95%         822               374    54.50%
Storages/DeltaMerge/DeltaMergeStore.h                             41                12    70.73%          19                 2    89.47%          91                28    69.23%          42                10    76.19%
Storages/DeltaMerge/RowKeyRange.h                                263                52    80.23%          65                13    80.00%         513                98    80.90%         166                46    72.29%
Storages/DeltaMerge/tests/MultiSegmentTestUtil.h                 286                74    74.13%           5                 0   100.00%          72                 0   100.00%          76                36    52.63%
Storages/DeltaMerge/tests/dm_basic_include.h                     199                18    90.95%          19                 1    94.74%         326                43    86.81%         118                24    79.66%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp        6355              1719    72.95%          45                 1    97.78%        2895                98    96.61%        2100               937    55.38%
Storages/IManageableStorage.h                                     20                18    10.00%          20                18    10.00%          38                36     5.26%           0                 0         -
Storages/StorageDeltaMerge.cpp                                   679               328    51.69%          58                26    55.17%        1304               722    44.63%         378               243    35.71%
Storages/StorageDeltaMerge.h                                      11                 6    45.45%          11                 6    45.45%          17                 8    52.94%           0                 0         -
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                          11300              3498    69.04%         408                99    75.74%        8623              2079    75.89%        4678              2210    52.76%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18201      9784             46.24%    203665  97863        51.95%

full coverage report (for internal network access only)

@breezewish
Copy link
Member Author

/merge

@ti-chi-bot
Copy link
Member

@breezewish: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

You only need to trigger /merge once, and if the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

If you have any questions about the PR merge process, please refer to pr process.

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.

@sre-bot
Copy link
Collaborator

sre-bot commented May 18, 2022

Coverage for changed files

Filename                                                     Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Common/FailPoint.cpp                                             452                52    88.50%           6                 0   100.00%          56                 4    92.86%         150                52    65.33%
Common/TiFlashMetrics.h                                           18                 0   100.00%          11                 0   100.00%          47                 1    97.87%           8                 0   100.00%
Flash/Coprocessor/DAGUtils.cpp                                   338               200    40.83%          43                16    62.79%         620               375    39.52%         406               237    41.63%
Flash/Coprocessor/DAGUtils.h                                       3                 0   100.00%           1                 0   100.00%          12                 0   100.00%           2                 0   100.00%
Flash/CoprocessorHandler.cpp                                     138               138     0.00%           5                 5     0.00%         129               129     0.00%          54                54     0.00%
Flash/FlashService.h                                               4                 4     0.00%           4                 4     0.00%          14                14     0.00%           0                 0         -
Flash/Management/ManualCompact.cpp                               140                54    61.43%           9                 0   100.00%         167                23    86.23%          68                32    52.94%
Flash/Management/ManualCompact.h                                   1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Flash/Management/tests/gtest_manual_compact.cpp                  905               315    65.19%          16                 0   100.00%         251                 4    98.41%         264               141    46.59%
Flash/ServiceUtils.cpp                                            13                13     0.00%           1                 1     0.00%           8                 8     0.00%          10                10     0.00%
Interpreters/InterpreterManageQuery.cpp                           11                11     0.00%           1                 1     0.00%          43                43     0.00%          14                14     0.00%
Interpreters/Settings.h                                            1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Storages/DeltaMerge/DeltaMergeStore.cpp                         1422               475    66.60%          67                 5    92.54%        2018               441    78.15%         822               370    54.99%
Storages/DeltaMerge/DeltaMergeStore.h                             41                12    70.73%          19                 2    89.47%          91                28    69.23%          42                10    76.19%
Storages/DeltaMerge/RowKeyRange.h                                263                52    80.23%          65                13    80.00%         513                98    80.90%         166                47    71.69%
Storages/DeltaMerge/tests/MultiSegmentTestUtil.h                 286                74    74.13%           5                 0   100.00%          72                 0   100.00%          76                36    52.63%
Storages/DeltaMerge/tests/dm_basic_include.h                     199                18    90.95%          19                 1    94.74%         326                43    86.81%         118                24    79.66%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp        6355              1719    72.95%          45                 1    97.78%        2895                98    96.61%        2100               937    55.38%
Storages/IManageableStorage.h                                     20                18    10.00%          20                18    10.00%          38                36     5.26%           0                 0         -
Storages/StorageDeltaMerge.cpp                                   679               328    51.69%          58                26    55.17%        1304               722    44.63%         378               243    35.71%
Storages/StorageDeltaMerge.h                                      11                 6    45.45%          11                 6    45.45%          17                 8    52.94%           0                 0         -
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                          11300              3489    69.12%         408                99    75.74%        8623              2075    75.94%        4678              2207    52.82%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18201      9784             46.24%    203665  97875        51.94%

full coverage report (for internal network access only)

@sre-bot
Copy link
Collaborator

sre-bot commented May 18, 2022

Coverage for changed files

Filename                                                     Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Common/FailPoint.cpp                                             452                52    88.50%           6                 0   100.00%          56                 4    92.86%         150                52    65.33%
Common/TiFlashMetrics.h                                           18                 0   100.00%          11                 0   100.00%          47                 1    97.87%           8                 0   100.00%
Flash/Coprocessor/DAGUtils.cpp                                   338               200    40.83%          43                16    62.79%         620               375    39.52%         406               237    41.63%
Flash/Coprocessor/DAGUtils.h                                       3                 0   100.00%           1                 0   100.00%          12                 0   100.00%           2                 0   100.00%
Flash/CoprocessorHandler.cpp                                     138               138     0.00%           5                 5     0.00%         129               129     0.00%          54                54     0.00%
Flash/FlashService.h                                               4                 4     0.00%           4                 4     0.00%          14                14     0.00%           0                 0         -
Flash/Management/ManualCompact.cpp                               140                54    61.43%           9                 0   100.00%         167                23    86.23%          68                32    52.94%
Flash/Management/ManualCompact.h                                   1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Flash/Management/tests/gtest_manual_compact.cpp                  905               315    65.19%          16                 0   100.00%         251                 4    98.41%         264               141    46.59%
Flash/ServiceUtils.cpp                                            13                13     0.00%           1                 1     0.00%           8                 8     0.00%          10                10     0.00%
Interpreters/InterpreterManageQuery.cpp                           11                11     0.00%           1                 1     0.00%          43                43     0.00%          14                14     0.00%
Interpreters/Settings.h                                            1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Storages/DeltaMerge/DeltaMergeStore.cpp                         1422               484    65.96%          67                 5    92.54%        2018               445    77.95%         822               374    54.50%
Storages/DeltaMerge/DeltaMergeStore.h                             41                11    73.17%          19                 2    89.47%          91                26    71.43%          42                 9    78.57%
Storages/DeltaMerge/RowKeyRange.h                                263                52    80.23%          65                13    80.00%         513                98    80.90%         166                47    71.69%
Storages/DeltaMerge/tests/MultiSegmentTestUtil.h                 286                74    74.13%           5                 0   100.00%          72                 0   100.00%          76                36    52.63%
Storages/DeltaMerge/tests/dm_basic_include.h                     199                18    90.95%          19                 1    94.74%         326                43    86.81%         118                24    79.66%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp        6355              1719    72.95%          45                 1    97.78%        2895                98    96.61%        2100               937    55.38%
Storages/IManageableStorage.h                                     20                18    10.00%          20                18    10.00%          38                36     5.26%           0                 0         -
Storages/StorageDeltaMerge.cpp                                   679               328    51.69%          58                26    55.17%        1304               722    44.63%         378               243    35.71%
Storages/StorageDeltaMerge.h                                      11                 6    45.45%          11                 6    45.45%          17                 8    52.94%           0                 0         -
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                          11300              3497    69.05%         408                99    75.74%        8623              2077    75.91%        4678              2210    52.76%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18201      9784             46.24%    203665  97870        51.95%

full coverage report (for internal network access only)

@breezewish
Copy link
Member Author

/run-integration-test

@sre-bot
Copy link
Collaborator

sre-bot commented May 18, 2022

Coverage for changed files

Filename                                                     Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Common/FailPoint.cpp                                             452                52    88.50%           6                 0   100.00%          56                 4    92.86%         150                52    65.33%
Common/TiFlashMetrics.h                                           18                 0   100.00%          11                 0   100.00%          47                 1    97.87%           8                 0   100.00%
Flash/Coprocessor/DAGUtils.cpp                                   338               200    40.83%          43                16    62.79%         620               375    39.52%         406               237    41.63%
Flash/Coprocessor/DAGUtils.h                                       3                 0   100.00%           1                 0   100.00%          12                 0   100.00%           2                 0   100.00%
Flash/CoprocessorHandler.cpp                                     138               138     0.00%           5                 5     0.00%         129               129     0.00%          54                54     0.00%
Flash/FlashService.h                                               4                 4     0.00%           4                 4     0.00%          14                14     0.00%           0                 0         -
Flash/Management/ManualCompact.cpp                               140                54    61.43%           9                 0   100.00%         167                23    86.23%          68                32    52.94%
Flash/Management/ManualCompact.h                                   1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Flash/Management/tests/gtest_manual_compact.cpp                  905               315    65.19%          16                 0   100.00%         251                 4    98.41%         264               141    46.59%
Flash/ServiceUtils.cpp                                            13                13     0.00%           1                 1     0.00%           8                 8     0.00%          10                10     0.00%
Interpreters/InterpreterManageQuery.cpp                           11                11     0.00%           1                 1     0.00%          43                43     0.00%          14                14     0.00%
Interpreters/Settings.h                                            1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Storages/DeltaMerge/DeltaMergeStore.cpp                         1422               484    65.96%          67                 5    92.54%        2018               445    77.95%         822               374    54.50%
Storages/DeltaMerge/DeltaMergeStore.h                             41                11    73.17%          19                 2    89.47%          91                26    71.43%          42                 9    78.57%
Storages/DeltaMerge/RowKeyRange.h                                263                52    80.23%          65                13    80.00%         513                98    80.90%         166                45    72.89%
Storages/DeltaMerge/tests/MultiSegmentTestUtil.h                 286                74    74.13%           5                 0   100.00%          72                 0   100.00%          76                36    52.63%
Storages/DeltaMerge/tests/dm_basic_include.h                     199                18    90.95%          19                 1    94.74%         326                43    86.81%         118                24    79.66%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp        6355              1719    72.95%          45                 1    97.78%        2895                98    96.61%        2100               937    55.38%
Storages/IManageableStorage.h                                     20                18    10.00%          20                18    10.00%          38                36     5.26%           0                 0         -
Storages/StorageDeltaMerge.cpp                                   679               328    51.69%          58                26    55.17%        1304               722    44.63%         378               243    35.71%
Storages/StorageDeltaMerge.h                                      11                 6    45.45%          11                 6    45.45%          17                 8    52.94%           0                 0         -
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                          11300              3497    69.05%         408                99    75.74%        8623              2077    75.91%        4678              2208    52.80%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18201      9784             46.24%    203665  97849        51.96%

full coverage report (for internal network access only)

@sre-bot
Copy link
Collaborator

sre-bot commented May 18, 2022

Coverage for changed files

Filename                                                     Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Common/FailPoint.cpp                                             452                52    88.50%           6                 0   100.00%          56                 4    92.86%         150                52    65.33%
Common/TiFlashMetrics.h                                           18                 0   100.00%          11                 0   100.00%          47                 1    97.87%           8                 0   100.00%
Flash/Coprocessor/DAGUtils.cpp                                   338               200    40.83%          43                16    62.79%         620               375    39.52%         406               237    41.63%
Flash/Coprocessor/DAGUtils.h                                       3                 0   100.00%           1                 0   100.00%          12                 0   100.00%           2                 0   100.00%
Flash/CoprocessorHandler.cpp                                     138               138     0.00%           5                 5     0.00%         129               129     0.00%          54                54     0.00%
Flash/FlashService.h                                               4                 4     0.00%           4                 4     0.00%          14                14     0.00%           0                 0         -
Flash/Management/ManualCompact.cpp                               140                54    61.43%           9                 0   100.00%         167                23    86.23%          68                32    52.94%
Flash/Management/ManualCompact.h                                   1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Flash/Management/tests/gtest_manual_compact.cpp                  905               315    65.19%          16                 0   100.00%         251                 4    98.41%         264               141    46.59%
Flash/ServiceUtils.cpp                                            13                13     0.00%           1                 1     0.00%           8                 8     0.00%          10                10     0.00%
Interpreters/InterpreterManageQuery.cpp                           11                11     0.00%           1                 1     0.00%          43                43     0.00%          14                14     0.00%
Interpreters/Settings.h                                            1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Storages/DeltaMerge/DeltaMergeStore.cpp                         1422               484    65.96%          67                 5    92.54%        2018               445    77.95%         822               374    54.50%
Storages/DeltaMerge/DeltaMergeStore.h                             41                12    70.73%          19                 2    89.47%          91                28    69.23%          42                10    76.19%
Storages/DeltaMerge/RowKeyRange.h                                263                52    80.23%          65                13    80.00%         513                98    80.90%         166                45    72.89%
Storages/DeltaMerge/tests/MultiSegmentTestUtil.h                 286                74    74.13%           5                 0   100.00%          72                 0   100.00%          76                36    52.63%
Storages/DeltaMerge/tests/dm_basic_include.h                     199                18    90.95%          19                 1    94.74%         326                43    86.81%         118                24    79.66%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp        6355              1719    72.95%          45                 1    97.78%        2895                98    96.61%        2100               937    55.38%
Storages/IManageableStorage.h                                     20                18    10.00%          20                18    10.00%          38                36     5.26%           0                 0         -
Storages/StorageDeltaMerge.cpp                                   679               328    51.69%          58                26    55.17%        1304               722    44.63%         378               243    35.71%
Storages/StorageDeltaMerge.h                                      11                 6    45.45%          11                 6    45.45%          17                 8    52.94%           0                 0         -
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                          11300              3498    69.04%         408                99    75.74%        8623              2079    75.89%        4678              2209    52.78%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18201      9784             46.24%    203665  97879        51.94%

full coverage report (for internal network access only)

@ti-chi-bot
Copy link
Member

@breezewish: Your PR was out of date, I have automatically updated it for you.

At the same time I will also trigger all tests for you:

/run-all-tests

If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

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.

@sre-bot
Copy link
Collaborator

sre-bot commented May 18, 2022

Coverage for changed files

Filename                                                     Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Common/FailPoint.cpp                                             452                52    88.50%           6                 0   100.00%          56                 4    92.86%         150                52    65.33%
Common/TiFlashMetrics.h                                           18                 0   100.00%          11                 0   100.00%          47                 1    97.87%           8                 0   100.00%
Flash/Coprocessor/DAGUtils.cpp                                   338               200    40.83%          43                16    62.79%         620               375    39.52%         406               237    41.63%
Flash/Coprocessor/DAGUtils.h                                       3                 0   100.00%           1                 0   100.00%          12                 0   100.00%           2                 0   100.00%
Flash/CoprocessorHandler.cpp                                     138               138     0.00%           5                 5     0.00%         129               129     0.00%          54                54     0.00%
Flash/FlashService.h                                               4                 4     0.00%           4                 4     0.00%          14                14     0.00%           0                 0         -
Flash/Management/ManualCompact.cpp                               140                54    61.43%           9                 0   100.00%         167                23    86.23%          68                32    52.94%
Flash/Management/ManualCompact.h                                   1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Flash/Management/tests/gtest_manual_compact.cpp                  905               315    65.19%          16                 0   100.00%         251                 4    98.41%         264               141    46.59%
Flash/ServiceUtils.cpp                                            13                13     0.00%           1                 1     0.00%           8                 8     0.00%          10                10     0.00%
Interpreters/InterpreterManageQuery.cpp                           11                11     0.00%           1                 1     0.00%          43                43     0.00%          14                14     0.00%
Interpreters/Settings.h                                            1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Storages/DeltaMerge/DeltaMergeStore.cpp                         1422               484    65.96%          67                 5    92.54%        2018               445    77.95%         822               374    54.50%
Storages/DeltaMerge/DeltaMergeStore.h                             41                12    70.73%          19                 2    89.47%          91                28    69.23%          42                10    76.19%
Storages/DeltaMerge/RowKeyRange.h                                263                52    80.23%          65                13    80.00%         513                98    80.90%         166                45    72.89%
Storages/DeltaMerge/tests/MultiSegmentTestUtil.h                 286                74    74.13%           5                 0   100.00%          72                 0   100.00%          76                36    52.63%
Storages/DeltaMerge/tests/dm_basic_include.h                     199                18    90.95%          19                 1    94.74%         326                43    86.81%         118                24    79.66%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp        6355              1719    72.95%          45                 1    97.78%        2895                98    96.61%        2100               937    55.38%
Storages/IManageableStorage.h                                     20                18    10.00%          20                18    10.00%          38                36     5.26%           0                 0         -
Storages/StorageDeltaMerge.cpp                                   679               328    51.69%          58                26    55.17%        1304               722    44.63%         378               243    35.71%
Storages/StorageDeltaMerge.h                                      11                 6    45.45%          11                 6    45.45%          17                 8    52.94%           0                 0         -
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                          11300              3498    69.04%         408                99    75.74%        8623              2079    75.89%        4678              2209    52.78%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18201      9784             46.24%    203665  97891        51.94%

full coverage report (for internal network access only)

@ti-chi-bot ti-chi-bot merged commit deb7a86 into master May 18, 2022
@breezewish breezewish deleted the wenxuan/compact branch May 18, 2022 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants