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

Fix the bug for restoring data with duplicated page id #4889

Merged
merged 16 commits into from
May 17, 2022

Conversation

JaySon-Huang
Copy link
Contributor

@JaySon-Huang JaySon-Huang commented May 13, 2022

What problem does this PR solve?

Issue Number: ref #3594

Problem Summary:
#4872
#4849
We fix those two bugs with previous PRs, but those changes introduce new misbehavior for TiFlash. Find a better way to fix those bugs.

What is changed and how it works?

Fix reusing same page_id for different kind by:

  • Throw exception with error code == PS_DIR_APPLY_INVALID_STATUS when VersionedPageEntries:: createNewEntry/createNewExternal/createNewRef/createNewExternal/createNewRef run into invali state
  • When restoring edit run into exception with error code == PS_DIR_APPLY_INVALID_STATUS, then call GC on mvcc_directory entries and run apply edit again

Other changes:

  • When restoring the storage pool for DeltaTree, get the max id for this ns_id by PageStorage->getMaxId
  • PageStorage->getMaxId now ignore the invisible id
  • Instead of meta_max_id, use PageEntry.isValid() to check whether page 1 is existed or not
    if (const auto entry1 = storage_pool->metaReader()->getPageEntry(1);
    !entry1.isValid())
  • Enable some tests that are disabled in the previous changes

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

@ti-chi-bot
Copy link
Member

ti-chi-bot commented May 13, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • jiaqizho
  • 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. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels May 13, 2022
@JaySon-Huang
Copy link
Contributor Author

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented May 13, 2022

Coverage for changed files

Filename                                   Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
DeltaMerge/DeltaMergeStore.cpp                1392               464    66.67%          66                 5    92.42%        1982               436    78.00%         808               366    54.70%
DeltaMerge/StoragePool.cpp                     173                67    61.27%          29                 6    79.31%         431               164    61.95%         114                56    50.88%
DeltaMerge/StoragePool.h                        12                 2    83.33%          12                 2    83.33%          32                10    68.75%           0                 0         -
Page/PageStorage.h                              19                 1    94.74%          19                 1    94.74%          85                 3    96.47%           0                 0         -
Page/V2/PageStorage.cpp                        553               156    71.79%          39                 4    89.74%         950               186    80.42%         370               149    59.73%
Page/V2/PageStorage.h                           49                10    79.59%          20                 3    85.00%          48                 3    93.75%          22                10    54.55%
Page/V2/tests/gtest_page_storage.cpp          4855               980    79.81%          32                 2    93.75%        1044                 5    99.52%        1498               712    52.47%
Page/V3/PageDirectory.cpp                      552                91    83.51%          31                 2    93.55%        1109               173    84.40%         418                99    76.32%
Page/V3/PageDirectory.h                         25                 3    88.00%          25                 3    88.00%         104                10    90.38%           0                 0         -
Page/V3/PageDirectoryFactory.cpp                66                 3    95.45%           5                 0   100.00%         134                 3    97.76%          58                 5    91.38%
Page/V3/PageDirectoryFactory.h                   2                 0   100.00%           2                 0   100.00%           8                 0   100.00%           0                 0         -
Page/V3/PageEntriesEdit.h                       54                 6    88.89%          39                 4    89.74%         177                40    77.40%          14                 6    57.14%
Page/V3/PageStorageImpl.cpp                    134                28    79.10%          24                 7    70.83%         293                62    78.84%          72                25    65.28%
Page/V3/PageStorageImpl.h                        8                 2    75.00%           8                 2    75.00%          22                 2    90.91%           0                 0         -
Page/V3/tests/gtest_page_directory.cpp        9228              1679    81.81%          54                 0   100.00%        1872                 7    99.63%        2894              1467    49.31%
Page/V3/tests/gtest_page_storage.cpp          3398              1188    65.04%          42                 7    83.33%        1008               154    84.72%        1080               615    43.06%
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                        20520              4680    77.19%         447                48    89.26%        9299              1258    86.47%        7348              3510    52.23%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18147      9791             46.05%    202862  98036        51.67%

full coverage report (for internal network access only)

@JaySon-Huang
Copy link
Contributor Author

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented May 14, 2022

Coverage for changed files

Filename                                                       Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Interpreters/Context.cpp                                           507               327    35.50%         166                89    46.39%        1126               701    37.74%         270               207    23.33%
Storages/DeltaMerge/DeltaMergeStore.cpp                           1392               482    65.37%          66                 5    92.42%        1982               444    77.60%         808               372    53.96%
Storages/DeltaMerge/StoragePool.cpp                                173                68    60.69%          29                 6    79.31%         431               166    61.48%         114                57    50.00%
Storages/DeltaMerge/StoragePool.h                                   12                 2    83.33%          12                 2    83.33%          32                10    68.75%           0                 0         -
Storages/DeltaMerge/tests/gtest_dm_storage_delta_merge.cpp        1770               351    80.17%          18                 0   100.00%         729                12    98.35%         564               267    52.66%
Storages/Page/PageStorage.h                                         19                 1    94.74%          19                 1    94.74%          85                 3    96.47%           0                 0         -
Storages/Page/V2/PageStorage.cpp                                   553               156    71.79%          39                 4    89.74%         950               186    80.42%         370               149    59.73%
Storages/Page/V2/PageStorage.h                                      49                10    79.59%          20                 3    85.00%          48                 3    93.75%          22                10    54.55%
Storages/Page/V2/tests/gtest_page_storage.cpp                     4855               980    79.81%          32                 2    93.75%        1044                 5    99.52%        1498               712    52.47%
Storages/Page/V3/PageDirectory.cpp                                 552                91    83.51%          31                 2    93.55%        1109               173    84.40%         418                99    76.32%
Storages/Page/V3/PageDirectory.h                                    25                 3    88.00%          25                 3    88.00%         104                10    90.38%           0                 0         -
Storages/Page/V3/PageDirectoryFactory.cpp                           66                 3    95.45%           5                 0   100.00%         134                 3    97.76%          58                 5    91.38%
Storages/Page/V3/PageDirectoryFactory.h                              2                 0   100.00%           2                 0   100.00%           8                 0   100.00%           0                 0         -
Storages/Page/V3/PageEntriesEdit.h                                  54                 6    88.89%          39                 4    89.74%         177                40    77.40%          14                 6    57.14%
Storages/Page/V3/PageStorageImpl.cpp                               134                28    79.10%          24                 7    70.83%         293                62    78.84%          72                25    65.28%
Storages/Page/V3/PageStorageImpl.h                                   8                 2    75.00%           8                 2    75.00%          22                 2    90.91%           0                 0         -
Storages/Page/V3/tests/gtest_page_directory.cpp                   9228              1679    81.81%          54                 0   100.00%        1872                 7    99.63%        2894              1467    49.31%
Storages/Page/V3/tests/gtest_page_storage.cpp                     3398              1188    65.04%          42                 7    83.33%        1008               154    84.72%        1080               615    43.06%
Storages/Page/V3/tests/gtest_page_storage_mix_mode.cpp            1291               325    74.83%          12                 0   100.00%         351                21    94.02%         382               194    49.21%
Storages/Transaction/tests/gtest_kvstore.cpp                      3753               730    80.55%          27                 2    92.59%        1240                30    97.58%        1114               589    47.13%
TestUtils/TiFlashTestEnv.cpp                                        25                 4    84.00%           4                 0   100.00%          65                 9    86.15%          14                 6    57.14%
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                            27866              6436    76.90%         674               139    79.38%       12810              2041    84.07%        9692              4780    50.68%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18150      9791             46.06%    202875  98027        51.68%

full coverage report (for internal network access only)

@JaySon-Huang
Copy link
Contributor Author

/rebuild

@JaySon-Huang
Copy link
Contributor Author

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented May 16, 2022

Coverage for changed files

Filename                                                       Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Interpreters/Context.cpp                                           507               327    35.50%         166                89    46.39%        1126               701    37.74%         270               207    23.33%
Storages/DeltaMerge/DeltaMergeStore.cpp                           1392               473    66.02%          66                 5    92.42%        1982               440    77.80%         808               369    54.33%
Storages/DeltaMerge/StoragePool.cpp                                173                67    61.27%          29                 6    79.31%         431               164    61.95%         114                56    50.88%
Storages/DeltaMerge/StoragePool.h                                   12                 2    83.33%          12                 2    83.33%          32                10    68.75%           0                 0         -
Storages/DeltaMerge/tests/gtest_dm_storage_delta_merge.cpp        1770               351    80.17%          18                 0   100.00%         729                12    98.35%         564               267    52.66%
Storages/Page/PageStorage.h                                         19                 1    94.74%          19                 1    94.74%          85                 3    96.47%           0                 0         -
Storages/Page/V2/PageStorage.cpp                                   553               156    71.79%          39                 4    89.74%         950               186    80.42%         370               149    59.73%
Storages/Page/V2/PageStorage.h                                      49                10    79.59%          20                 3    85.00%          48                 3    93.75%          22                10    54.55%
Storages/Page/V2/tests/gtest_page_storage.cpp                     4855               980    79.81%          32                 2    93.75%        1044                 5    99.52%        1498               712    52.47%
Storages/Page/V3/PageDirectory.cpp                                 552                91    83.51%          31                 2    93.55%        1109               173    84.40%         418                99    76.32%
Storages/Page/V3/PageDirectory.h                                    25                 3    88.00%          25                 3    88.00%         104                10    90.38%           0                 0         -
Storages/Page/V3/PageDirectoryFactory.cpp                           66                 3    95.45%           5                 0   100.00%         134                 3    97.76%          58                 5    91.38%
Storages/Page/V3/PageDirectoryFactory.h                              2                 0   100.00%           2                 0   100.00%           8                 0   100.00%           0                 0         -
Storages/Page/V3/PageEntriesEdit.h                                  54                 6    88.89%          39                 4    89.74%         177                40    77.40%          14                 6    57.14%
Storages/Page/V3/PageStorageImpl.cpp                               134                28    79.10%          24                 7    70.83%         293                62    78.84%          72                25    65.28%
Storages/Page/V3/PageStorageImpl.h                                   8                 2    75.00%           8                 2    75.00%          22                 2    90.91%           0                 0         -
Storages/Page/V3/tests/gtest_page_directory.cpp                   9228              1679    81.81%          54                 0   100.00%        1872                 7    99.63%        2894              1467    49.31%
Storages/Page/V3/tests/gtest_page_storage.cpp                     3398              1188    65.04%          42                 7    83.33%        1008               154    84.72%        1080               615    43.06%
Storages/Page/V3/tests/gtest_page_storage_mix_mode.cpp            1291               325    74.83%          12                 0   100.00%         351                21    94.02%         382               194    49.21%
Storages/Transaction/tests/gtest_kvstore.cpp                      3753               730    80.55%          27                 2    92.59%        1240                30    97.58%        1114               589    47.13%
TestUtils/TiFlashTestEnv.cpp                                        25                 4    84.00%           4                 0   100.00%          65                 9    86.15%          14                 6    57.14%
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                            27866              6426    76.94%         674               139    79.38%       12810              2035    84.11%        9692              4776    50.72%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18150      9791             46.06%    202875  98041        51.67%

full coverage report (for internal network access only)

@JaySon-Huang
Copy link
Contributor Author

/run-all-tests

Comment on lines +943 to +964
do
{
// Can't find any entries in current ns_id
if (iter->first.high != ns_id)
{
break;
}

// Check and return whether this id is visible, otherwise continue to check the previous one.
if (iter->second->isVisible(UINT64_MAX - 1))
{
return iter->first.low;
}

// Current entry/ref/external is deleted and there are no entries before it.
if (iter == mvcc_table_directory.begin())
{
break;
}

iter--;
} while (true);
Copy link
Contributor Author

@JaySon-Huang JaySon-Huang May 16, 2022

Choose a reason for hiding this comment

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

These changes revert #4845 but use isVisible to check whether we can return the id in getMaxId
And we don't need DBGInvoke __gc_global_storage_pool() for partition table test
/cc @jiaqizho @lidezhu

@JaySon-Huang
Copy link
Contributor Author

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented May 16, 2022

Coverage for changed files

Filename                                                   Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Interpreters/Context.cpp                                       507               327    35.50%         166                89    46.39%        1126               701    37.74%         270               207    23.33%
Storages/DeltaMerge/DeltaMergeStore.cpp                       1392               464    66.67%          66                 5    92.42%        1982               436    78.00%         808               366    54.70%
Storages/DeltaMerge/StoragePool.cpp                            173                67    61.27%          29                 6    79.31%         431               164    61.95%         114                56    50.88%
Storages/DeltaMerge/StoragePool.h                               12                 2    83.33%          12                 2    83.33%          32                10    68.75%           0                 0         -
Storages/Page/PageStorage.h                                     19                 1    94.74%          19                 1    94.74%          85                 3    96.47%           0                 0         -
Storages/Page/V2/PageStorage.cpp                               553               156    71.79%          39                 4    89.74%         950               186    80.42%         370               149    59.73%
Storages/Page/V2/PageStorage.h                                  49                10    79.59%          20                 3    85.00%          48                 3    93.75%          22                10    54.55%
Storages/Page/V2/tests/gtest_page_storage.cpp                 4855               980    79.81%          32                 2    93.75%        1044                 5    99.52%        1498               712    52.47%
Storages/Page/V3/PageDirectory.cpp                             580                89    84.66%          32                 2    93.75%        1148               168    85.37%         438                98    77.63%
Storages/Page/V3/PageDirectory.h                                25                 3    88.00%          25                 3    88.00%         104                10    90.38%           0                 0         -
Storages/Page/V3/PageDirectoryFactory.cpp                       66                 3    95.45%           5                 0   100.00%         134                 3    97.76%          58                 5    91.38%
Storages/Page/V3/PageDirectoryFactory.h                          2                 0   100.00%           2                 0   100.00%           8                 0   100.00%           0                 0         -
Storages/Page/V3/PageEntriesEdit.h                              54                 6    88.89%          39                 4    89.74%         177                40    77.40%          14                 6    57.14%
Storages/Page/V3/PageStorageImpl.cpp                           134                28    79.10%          24                 7    70.83%         293                62    78.84%          72                25    65.28%
Storages/Page/V3/PageStorageImpl.h                               8                 2    75.00%           8                 2    75.00%          22                 2    90.91%           0                 0         -
Storages/Page/V3/tests/gtest_page_directory.cpp              10570              1962    81.44%          58                 0   100.00%        2015                 7    99.65%        3324              1686    49.28%
Storages/Page/V3/tests/gtest_page_storage.cpp                 3398              1188    65.04%          42                 7    83.33%        1008               154    84.72%        1080               615    43.06%
Storages/Page/V3/tests/gtest_page_storage_mix_mode.cpp        1291               325    74.83%          12                 0   100.00%         351                21    94.02%         382               194    49.21%
TestUtils/TiFlashTestEnv.cpp                                    25                 4    84.00%           4                 0   100.00%          65                 9    86.15%          14                 6    57.14%
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                        23713              5617    76.31%         634               137    78.39%       11023              1984    82.00%        8464              4135    51.15%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18152      9791             46.06%    203044  98018        51.73%

full coverage report (for internal network access only)

@ti-chi-bot ti-chi-bot removed the status/can-merge Indicates a PR has been approved by a committer. label May 17, 2022
@JaySon-Huang
Copy link
Contributor Author

/merge

@ti-chi-bot
Copy link
Member

@JaySon-Huang: 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: 055e4bb

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

sre-bot commented May 17, 2022

Coverage for changed files

Filename                                                   Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Interpreters/Context.cpp                                       507               327    35.50%         166                89    46.39%        1126               701    37.74%         270               207    23.33%
Storages/DeltaMerge/DeltaMergeStore.cpp                       1392               464    66.67%          66                 5    92.42%        1982               436    78.00%         808               365    54.83%
Storages/DeltaMerge/StoragePool.cpp                            173                67    61.27%          29                 6    79.31%         432               166    61.57%         114                56    50.88%
Storages/DeltaMerge/StoragePool.h                               12                 2    83.33%          12                 2    83.33%          32                10    68.75%           0                 0         -
Storages/Page/PageStorage.h                                     19                 1    94.74%          19                 1    94.74%          85                 3    96.47%           0                 0         -
Storages/Page/V2/PageStorage.cpp                               553               156    71.79%          39                 4    89.74%         950               186    80.42%         370               149    59.73%
Storages/Page/V2/PageStorage.h                                  49                10    79.59%          20                 3    85.00%          48                 3    93.75%          22                10    54.55%
Storages/Page/V2/tests/gtest_page_storage.cpp                 4855               980    79.81%          32                 2    93.75%        1044                 5    99.52%        1498               712    52.47%
Storages/Page/V3/PageDirectory.cpp                             580                89    84.66%          32                 2    93.75%        1148               168    85.37%         438                98    77.63%
Storages/Page/V3/PageDirectory.h                                25                 3    88.00%          25                 3    88.00%         104                10    90.38%           0                 0         -
Storages/Page/V3/PageDirectoryFactory.cpp                       66                 3    95.45%           5                 0   100.00%         134                 3    97.76%          58                 5    91.38%
Storages/Page/V3/PageDirectoryFactory.h                          2                 0   100.00%           2                 0   100.00%           8                 0   100.00%           0                 0         -
Storages/Page/V3/PageEntriesEdit.h                              54                 6    88.89%          39                 4    89.74%         177                40    77.40%          14                 6    57.14%
Storages/Page/V3/PageStorageImpl.cpp                           134                28    79.10%          24                 7    70.83%         293                62    78.84%          72                25    65.28%
Storages/Page/V3/PageStorageImpl.h                               8                 2    75.00%           8                 2    75.00%          22                 2    90.91%           0                 0         -
Storages/Page/V3/tests/gtest_page_directory.cpp              10570              1962    81.44%          58                 0   100.00%        2015                 7    99.65%        3324              1686    49.28%
Storages/Page/V3/tests/gtest_page_storage.cpp                 3398              1188    65.04%          42                 7    83.33%        1008               154    84.72%        1080               615    43.06%
Storages/Page/V3/tests/gtest_page_storage_mix_mode.cpp        1291               325    74.83%          12                 0   100.00%         351                21    94.02%         382               194    49.21%
TestUtils/TiFlashTestEnv.cpp                                    25                 4    84.00%           4                 0   100.00%          64                 9    85.94%          14                 6    57.14%
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                        23713              5617    76.31%         634               137    78.39%       11023              1986    81.98%        8464              4134    51.16%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18143      9790             46.04%    202691  97901        51.70%

full coverage report (for internal network access only)

@JaySon-Huang
Copy link
Contributor Author

/merge

@ti-chi-bot
Copy link
Member

@JaySon-Huang: 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: cb236c1

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

sre-bot commented May 17, 2022

Coverage for changed files

Filename                                                   Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Interpreters/Context.cpp                                       507               327    35.50%         166                89    46.39%        1126               701    37.74%         270               207    23.33%
Storages/DeltaMerge/DeltaMergeStore.cpp                       1392               473    66.02%          66                 5    92.42%        1982               440    77.80%         808               369    54.33%
Storages/DeltaMerge/StoragePool.cpp                            173                67    61.27%          29                 6    79.31%         432               166    61.57%         114                56    50.88%
Storages/DeltaMerge/StoragePool.h                               12                 2    83.33%          12                 2    83.33%          32                10    68.75%           0                 0         -
Storages/Page/PageStorage.h                                     19                 1    94.74%          19                 1    94.74%          85                 3    96.47%           0                 0         -
Storages/Page/V2/PageStorage.cpp                               553               156    71.79%          39                 4    89.74%         950               186    80.42%         370               149    59.73%
Storages/Page/V2/PageStorage.h                                  49                10    79.59%          20                 3    85.00%          48                 3    93.75%          22                10    54.55%
Storages/Page/V2/tests/gtest_page_storage.cpp                 4855               980    79.81%          32                 2    93.75%        1044                 5    99.52%        1498               712    52.47%
Storages/Page/V3/BlobStore.h                                    10                 2    80.00%          10                 2    80.00%          46                23    50.00%           0                 0         -
Storages/Page/V3/PageDirectory.cpp                             580                89    84.66%          32                 2    93.75%        1148               168    85.37%         438                98    77.63%
Storages/Page/V3/PageDirectory.h                                25                 3    88.00%          25                 3    88.00%         104                10    90.38%           0                 0         -
Storages/Page/V3/PageDirectoryFactory.cpp                       66                 3    95.45%           5                 0   100.00%         134                 3    97.76%          58                 5    91.38%
Storages/Page/V3/PageDirectoryFactory.h                          2                 0   100.00%           2                 0   100.00%           8                 0   100.00%           0                 0         -
Storages/Page/V3/PageEntriesEdit.h                              54                 6    88.89%          39                 4    89.74%         177                40    77.40%          14                 6    57.14%
Storages/Page/V3/PageStorageImpl.cpp                           134                28    79.10%          24                 7    70.83%         293                62    78.84%          72                25    65.28%
Storages/Page/V3/PageStorageImpl.h                               8                 2    75.00%           8                 2    75.00%          22                 2    90.91%           0                 0         -
Storages/Page/V3/WAL/serialize.cpp                              47                 3    93.62%          15                 0   100.00%         194                13    93.30%          52                 4    92.31%
Storages/Page/V3/WALStore.cpp                                   81                 7    91.36%           9                 0   100.00%         154                10    93.51%          36                 9    75.00%
Storages/Page/V3/WALStore.h                                      1                 0   100.00%           1                 0   100.00%           3                 0   100.00%           0                 0         -
Storages/Page/V3/tests/gtest_page_directory.cpp              10570              1962    81.44%          58                 0   100.00%        2015                 7    99.65%        3324              1686    49.28%
Storages/Page/V3/tests/gtest_page_storage.cpp                 3398              1188    65.04%          42                 7    83.33%        1008               154    84.72%        1080               615    43.06%
Storages/Page/V3/tests/gtest_page_storage_mix_mode.cpp        1291               325    74.83%          12                 0   100.00%         351                21    94.02%         382               194    49.21%
Storages/Page/V3/tests/gtest_wal_store.cpp                    2437               293    87.98%          13                 0   100.00%         547                13    97.62%         814               396    51.35%
TestUtils/TiFlashTestEnv.cpp                                    25                 4    84.00%           4                 0   100.00%          64                 9    85.94%          14                 6    57.14%
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                        26289              5931    77.44%         682               139    79.62%       11967              2049    82.88%        9366              4547    51.45%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18143      9790             46.04%    202691  97885        51.71%

full coverage report (for internal network access only)

@JaySon-Huang
Copy link
Contributor Author

/run-integration-test

@sre-bot
Copy link
Collaborator

sre-bot commented May 17, 2022

Coverage for changed files

Filename                                                   Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Interpreters/Context.cpp                                       507               327    35.50%         166                89    46.39%        1126               701    37.74%         270               207    23.33%
Storages/DeltaMerge/DeltaMergeStore.cpp                       1392               464    66.67%          66                 5    92.42%        1982               436    78.00%         808               366    54.70%
Storages/DeltaMerge/StoragePool.cpp                            173                67    61.27%          29                 6    79.31%         432               166    61.57%         114                56    50.88%
Storages/DeltaMerge/StoragePool.h                               12                 2    83.33%          12                 2    83.33%          32                10    68.75%           0                 0         -
Storages/Page/PageStorage.h                                     19                 1    94.74%          19                 1    94.74%          85                 3    96.47%           0                 0         -
Storages/Page/V2/PageStorage.cpp                               553               156    71.79%          39                 4    89.74%         950               186    80.42%         370               149    59.73%
Storages/Page/V2/PageStorage.h                                  49                10    79.59%          20                 3    85.00%          48                 3    93.75%          22                10    54.55%
Storages/Page/V2/tests/gtest_page_storage.cpp                 4855               980    79.81%          32                 2    93.75%        1044                 5    99.52%        1498               712    52.47%
Storages/Page/V3/BlobStore.h                                    10                 2    80.00%          10                 2    80.00%          46                23    50.00%           0                 0         -
Storages/Page/V3/PageDirectory.cpp                             580                89    84.66%          32                 2    93.75%        1148               168    85.37%         438                98    77.63%
Storages/Page/V3/PageDirectory.h                                25                 3    88.00%          25                 3    88.00%         104                10    90.38%           0                 0         -
Storages/Page/V3/PageDirectoryFactory.cpp                       66                 3    95.45%           5                 0   100.00%         134                 3    97.76%          58                 5    91.38%
Storages/Page/V3/PageDirectoryFactory.h                          2                 0   100.00%           2                 0   100.00%           8                 0   100.00%           0                 0         -
Storages/Page/V3/PageEntriesEdit.h                              54                 6    88.89%          39                 4    89.74%         177                40    77.40%          14                 6    57.14%
Storages/Page/V3/PageStorageImpl.cpp                           134                28    79.10%          24                 7    70.83%         293                62    78.84%          72                25    65.28%
Storages/Page/V3/PageStorageImpl.h                               8                 2    75.00%           8                 2    75.00%          22                 2    90.91%           0                 0         -
Storages/Page/V3/WAL/serialize.cpp                              47                 3    93.62%          15                 0   100.00%         194                13    93.30%          52                 4    92.31%
Storages/Page/V3/WALStore.cpp                                   81                 7    91.36%           9                 0   100.00%         154                10    93.51%          36                 9    75.00%
Storages/Page/V3/WALStore.h                                      1                 0   100.00%           1                 0   100.00%           3                 0   100.00%           0                 0         -
Storages/Page/V3/tests/gtest_page_directory.cpp              10570              1962    81.44%          58                 0   100.00%        2015                 7    99.65%        3324              1686    49.28%
Storages/Page/V3/tests/gtest_page_storage.cpp                 3398              1188    65.04%          42                 7    83.33%        1008               154    84.72%        1080               615    43.06%
Storages/Page/V3/tests/gtest_page_storage_mix_mode.cpp        1291               325    74.83%          12                 0   100.00%         351                21    94.02%         382               194    49.21%
Storages/Page/V3/tests/gtest_wal_store.cpp                    2437               293    87.98%          13                 0   100.00%         547                13    97.62%         814               396    51.35%
TestUtils/TiFlashTestEnv.cpp                                    25                 4    84.00%           4                 0   100.00%          64                 9    85.94%          14                 6    57.14%
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                        26289              5922    77.47%         682               139    79.62%       11967              2045    82.91%        9366              4544    51.48%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18156      9792             46.07%    202889  97887        51.75%

full coverage report (for internal network access only)

@JaySon-Huang
Copy link
Contributor Author

/merge

@ti-chi-bot
Copy link
Member

@JaySon-Huang: 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 17, 2022

Coverage for changed files

Filename                                                   Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Interpreters/Context.cpp                                       507               327    35.50%         166                89    46.39%        1126               701    37.74%         270               207    23.33%
Storages/DeltaMerge/DeltaMergeStore.cpp                       1392               464    66.67%          66                 5    92.42%        1982               436    78.00%         808               365    54.83%
Storages/DeltaMerge/StoragePool.cpp                            173                67    61.27%          29                 6    79.31%         432               166    61.57%         114                56    50.88%
Storages/DeltaMerge/StoragePool.h                               12                 2    83.33%          12                 2    83.33%          32                10    68.75%           0                 0         -
Storages/Page/PageStorage.h                                     19                 1    94.74%          19                 1    94.74%          85                 3    96.47%           0                 0         -
Storages/Page/V2/PageStorage.cpp                               553               156    71.79%          39                 4    89.74%         950               186    80.42%         370               149    59.73%
Storages/Page/V2/PageStorage.h                                  49                10    79.59%          20                 3    85.00%          48                 3    93.75%          22                10    54.55%
Storages/Page/V2/tests/gtest_page_storage.cpp                 4855               980    79.81%          32                 2    93.75%        1044                 5    99.52%        1498               712    52.47%
Storages/Page/V3/BlobStore.h                                    10                 2    80.00%          10                 2    80.00%          46                23    50.00%           0                 0         -
Storages/Page/V3/PageDirectory.cpp                             580                89    84.66%          32                 2    93.75%        1148               168    85.37%         438                98    77.63%
Storages/Page/V3/PageDirectory.h                                25                 3    88.00%          25                 3    88.00%         104                10    90.38%           0                 0         -
Storages/Page/V3/PageDirectoryFactory.cpp                       66                 3    95.45%           5                 0   100.00%         134                 3    97.76%          58                 5    91.38%
Storages/Page/V3/PageDirectoryFactory.h                          2                 0   100.00%           2                 0   100.00%           8                 0   100.00%           0                 0         -
Storages/Page/V3/PageEntriesEdit.h                              54                 6    88.89%          39                 4    89.74%         177                40    77.40%          14                 6    57.14%
Storages/Page/V3/PageStorageImpl.cpp                           134                28    79.10%          24                 7    70.83%         293                62    78.84%          72                25    65.28%
Storages/Page/V3/PageStorageImpl.h                               8                 2    75.00%           8                 2    75.00%          22                 2    90.91%           0                 0         -
Storages/Page/V3/WAL/serialize.cpp                              47                 3    93.62%          15                 0   100.00%         194                13    93.30%          52                 4    92.31%
Storages/Page/V3/WALStore.cpp                                   81                 7    91.36%           9                 0   100.00%         154                10    93.51%          36                 9    75.00%
Storages/Page/V3/WALStore.h                                      1                 0   100.00%           1                 0   100.00%           3                 0   100.00%           0                 0         -
Storages/Page/V3/tests/gtest_page_directory.cpp              10570              1962    81.44%          58                 0   100.00%        2015                 7    99.65%        3324              1686    49.28%
Storages/Page/V3/tests/gtest_page_storage.cpp                 3398              1188    65.04%          42                 7    83.33%        1008               154    84.72%        1080               615    43.06%
Storages/Page/V3/tests/gtest_page_storage_mix_mode.cpp        1291               325    74.83%          12                 0   100.00%         351                21    94.02%         382               194    49.21%
Storages/Page/V3/tests/gtest_wal_store.cpp                    2437               293    87.98%          13                 0   100.00%         547                13    97.62%         814               396    51.35%
TestUtils/TiFlashTestEnv.cpp                                    25                 4    84.00%           4                 0   100.00%          64                 9    85.94%          14                 6    57.14%
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                        26289              5922    77.47%         682               139    79.62%       11967              2045    82.91%        9366              4543    51.49%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18156      9792             46.07%    202889  97889        51.75%

full coverage report (for internal network access only)

@ti-chi-bot
Copy link
Member

@JaySon-Huang: 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.

@JaySon-Huang
Copy link
Contributor Author

/rebuild

@JaySon-Huang
Copy link
Contributor Author

/run-integration-test

@sre-bot
Copy link
Collaborator

sre-bot commented May 17, 2022

Coverage for changed files

Filename                                                   Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Interpreters/Context.cpp                                       507               327    35.50%         166                89    46.39%        1126               701    37.74%         270               207    23.33%
Storages/DeltaMerge/DeltaMergeStore.cpp                       1392               464    66.67%          66                 5    92.42%        1982               436    78.00%         808               366    54.70%
Storages/DeltaMerge/StoragePool.cpp                            173                67    61.27%          29                 6    79.31%         432               166    61.57%         114                56    50.88%
Storages/DeltaMerge/StoragePool.h                               12                 2    83.33%          12                 2    83.33%          32                10    68.75%           0                 0         -
Storages/Page/PageStorage.h                                     19                 1    94.74%          19                 1    94.74%          85                 3    96.47%           0                 0         -
Storages/Page/V2/PageStorage.cpp                               553               156    71.79%          39                 4    89.74%         950               186    80.42%         370               149    59.73%
Storages/Page/V2/PageStorage.h                                  49                10    79.59%          20                 3    85.00%          48                 3    93.75%          22                10    54.55%
Storages/Page/V2/tests/gtest_page_storage.cpp                 4855               980    79.81%          32                 2    93.75%        1044                 5    99.52%        1498               712    52.47%
Storages/Page/V3/BlobStore.h                                    10                 2    80.00%          10                 2    80.00%          46                23    50.00%           0                 0         -
Storages/Page/V3/PageDirectory.cpp                             580                89    84.66%          32                 2    93.75%        1148               168    85.37%         438                98    77.63%
Storages/Page/V3/PageDirectory.h                                25                 3    88.00%          25                 3    88.00%         104                10    90.38%           0                 0         -
Storages/Page/V3/PageDirectoryFactory.cpp                       66                 3    95.45%           5                 0   100.00%         134                 3    97.76%          58                 5    91.38%
Storages/Page/V3/PageDirectoryFactory.h                          2                 0   100.00%           2                 0   100.00%           8                 0   100.00%           0                 0         -
Storages/Page/V3/PageEntriesEdit.h                              54                 6    88.89%          39                 4    89.74%         177                40    77.40%          14                 6    57.14%
Storages/Page/V3/PageStorageImpl.cpp                           134                28    79.10%          24                 7    70.83%         293                62    78.84%          72                25    65.28%
Storages/Page/V3/PageStorageImpl.h                               8                 2    75.00%           8                 2    75.00%          22                 2    90.91%           0                 0         -
Storages/Page/V3/WAL/serialize.cpp                              47                 3    93.62%          15                 0   100.00%         194                13    93.30%          52                 4    92.31%
Storages/Page/V3/WALStore.cpp                                   81                 7    91.36%           9                 0   100.00%         154                10    93.51%          36                 9    75.00%
Storages/Page/V3/WALStore.h                                      1                 0   100.00%           1                 0   100.00%           3                 0   100.00%           0                 0         -
Storages/Page/V3/tests/gtest_page_directory.cpp              10570              1962    81.44%          58                 0   100.00%        2015                 7    99.65%        3324              1686    49.28%
Storages/Page/V3/tests/gtest_page_storage.cpp                 3398              1188    65.04%          42                 7    83.33%        1008               154    84.72%        1080               615    43.06%
Storages/Page/V3/tests/gtest_page_storage_mix_mode.cpp        1291               325    74.83%          12                 0   100.00%         351                21    94.02%         382               194    49.21%
Storages/Page/V3/tests/gtest_wal_store.cpp                    2437               293    87.98%          13                 0   100.00%         547                13    97.62%         814               396    51.35%
TestUtils/TiFlashTestEnv.cpp                                    25                 4    84.00%           4                 0   100.00%          64                 9    85.94%          14                 6    57.14%
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                        26289              5922    77.47%         682               139    79.62%       11967              2045    82.91%        9366              4544    51.48%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18156      9792             46.07%    202889  97889        51.75%

full coverage report (for internal network access only)

@ti-chi-bot ti-chi-bot merged commit 43b25fc into pingcap:master May 17, 2022
@JaySon-Huang JaySon-Huang deleted the compact_when_restore branch May 18, 2022 02:55
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