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

Enable PageStorage V3 in UT #4884

Merged
merged 6 commits into from
May 25, 2022
Merged

Conversation

hehechen
Copy link
Contributor

@hehechen hehechen commented May 13, 2022

What problem does this PR solve?

Issue Number: close #4835

What is changed and how it works?

Enable PageStorage V3 in UT and add blob store failpoint test in DeltaMerge Storage UT.

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 release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 13, 2022
@hehechen hehechen requested review from jiaqizho and lidezhu May 16, 2022 02:42
@hehechen hehechen changed the title Enable PageStorage V3 in UT and add blobstore failpoint Enable PageStorage V3 in UT May 16, 2022
@jiaqizho
Copy link
Contributor

/run-all-tests

@jiaqizho
Copy link
Contributor

jiaqizho commented May 16, 2022

[2022-05-16T07:52:04.474Z]    12876 ms: /tiflash/gtests_dbms DatabaseTiFlashTest.RenameTable
[2022-05-16T07:52:04.474Z]     1681 ms: /tiflash/gtests_dbms DatabaseTiFlashTest.RenameTableBetweenDatabase
[2022-05-16T07:52:04.474Z]     1578 ms: /tiflash/gtests_dbms UsersConfigParserTest.ReloadStoragePoolConfig
[2022-05-16T07:52:04.474Z]     1802 ms: /tiflash/gtests_dbms StorageDeltaMergeTest.ReadWriteCase1
[2022-05-16T07:52:04.474Z]     1728 ms: /tiflash/gtests_dbms DMMinMaxIndexTest.NullableToNullable
[2022-05-16T07:52:04.474Z]     1734 ms: /tiflash/gtests_dbms StorageDeltaMergeTest.Rename
[2022-05-16T07:52:04.474Z]     1631 ms: /tiflash/gtests_dbms DMMinMaxIndexTest.Logical
[2022-05-16T07:52:04.474Z]     1751 ms: /tiflash/gtests_dbms StorageDeltaMergeTest.HandleCol
[2022-05-16T07:52:04.474Z]     1699 ms: /tiflash/gtests_dbms DMMinMaxIndexTest.DelMark
[2022-05-16T07:52:04.474Z]     1765 ms: /tiflash/gtests_dbms StorageDeltaMergeTest.RestoreAfterClearData
[2022-05-16T07:52:04.474Z]     2675 ms: /tiflash/gtests_dbms RegionPersister_test.persister
[2022-05-16T07:52:04.474Z]     1585 ms: /tiflash/gtests_dbms RegionPersister_test.persister_compatible_mode
[2022-05-16T07:52:04.474Z]     1689 ms: /tiflash/gtests_dbms TestMode/DeltaMergeStoreRWTest.WriteCrashBeforeWalWithCache/V1_BlockOnly
[2022-05-16T07:52:04.474Z]     1822 ms: /tiflash/gtests_dbms TestMode/DeltaMergeStoreRWTest.WriteCrashBeforeWalWithCache/V2_BlockOnly
[2022-05-16T07:52:04.474Z]     1693 ms: /tiflash/gtests_dbms TestMode/DeltaMergeStoreRWTest.WriteCrashBeforeWalWithCache/V2_FileOnly
[2022-05-16T07:52:04.474Z]     1634 ms: /tiflash/gtests_dbms TestMode/DeltaMergeStoreRWTest.WriteCrashBeforeWalWithCache/V2_Mix

There are still some tests that are not compatible with PageFormat::V3.

Could you fix that and found out whether any errors exist in V3?

@hehechen
Copy link
Contributor Author

/run-unit-test

1 similar comment
@hehechen
Copy link
Contributor Author

/run-unit-test

@hehechen
Copy link
Contributor Author

/run-unit-test

@hehechen
Copy link
Contributor Author

/run-unit-test

@jiaqizho
Copy link
Contributor

Could you test #4948?

@hehechen
Copy link
Contributor Author

Could you test #4948?

#4948 has passed all tests.

@ti-chi-bot ti-chi-bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 24, 2022
@jiaqizho
Copy link
Contributor

/run-all-tests

Signed-off-by: hehechen <awd123456sss@gmail.com>
@ti-chi-bot ti-chi-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 24, 2022
@jiaqizho
Copy link
Contributor

@hehechen any update/missing in this PR?

@hehechen
Copy link
Contributor Author

@hehechen any update/missing in this PR?

fix clang-tidy and some failed UT after enable PageStorage V3.

Signed-off-by: hehechen <awd123456sss@gmail.com>
@jiaqizho
Copy link
Contributor

/run-all-tests

Signed-off-by: hehechen <awd123456sss@gmail.com>
@hehechen
Copy link
Contributor Author

/run-all-tests

@hehechen
Copy link
Contributor Author

/run-unit-test

@sre-bot
Copy link
Collaborator

sre-bot commented May 24, 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                                         512               323    36.91%         166                88    46.99%        1126               693    38.45%         272               205    24.63%
Server/tests/gtest_server_config.cpp                            2186               351    83.94%          10                 0   100.00%         423                 3    99.29%         676               335    50.44%
Storages/DeltaMerge/StoragePool.cpp                              224               110    50.89%          31                 9    70.97%         491               219    55.40%         146                82    43.84%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp        6851              1829    73.30%          47                 1    97.87%        3059               103    96.63%        2262              1013    55.22%
Storages/Page/V3/tests/gtest_page_storage_mix_mode.cpp          1504               404    73.14%          14                 0   100.00%         406                21    94.83%         442               226    48.87%
Storages/Transaction/tests/gtest_region_persister.cpp           1010               328    67.52%          16                 3    81.25%         388               117    69.85%         284               148    47.89%
TestUtils/TiFlashTestEnv.cpp                                      25                 4    84.00%           4                 0   100.00%          65                 9    86.15%          14                 6    57.14%
TestUtils/TiFlashTestEnv.h                                        25                 3    88.00%           6                 0   100.00%          46                 5    89.13%          16                 3    81.25%
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                          12337              3352    72.83%         294               101    65.65%        6004              1170    80.51%        4112              2018    50.92%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18224      9787             46.30%    204290  97954        52.05%

full coverage report (for internal network access only)

Copy link
Contributor

@jiaqizho jiaqizho left a comment

Choose a reason for hiding this comment

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

LGTM with some comments

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label May 24, 2022
Signed-off-by: hehechen <awd123456sss@gmail.com>
@hehechen
Copy link
Contributor Author

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented May 25, 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                                         512               323    36.91%         166                88    46.99%        1126               693    38.45%         272               205    24.63%
Server/tests/gtest_server_config.cpp                            2186               351    83.94%          10                 0   100.00%         423                 3    99.29%         676               335    50.44%
Storages/DeltaMerge/StoragePool.cpp                              224               110    50.89%          31                 9    70.97%         491               219    55.40%         146                82    43.84%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp        6851              1829    73.30%          47                 1    97.87%        3059               103    96.63%        2262              1013    55.22%
Storages/Page/PageStorage.h                                       19                 2    89.47%          19                 2    89.47%          85                 4    95.29%           0                 0         -
Storages/Page/V3/tests/gtest_page_storage_mix_mode.cpp          1504               404    73.14%          14                 0   100.00%         406                21    94.83%         442               226    48.87%
Storages/Transaction/tests/gtest_region_persister.cpp           1011               328    67.56%          17                 3    82.35%         391               117    70.08%         284               148    47.89%
TestUtils/TiFlashTestEnv.cpp                                      25                 4    84.00%           4                 0   100.00%          65                 9    86.15%          14                 6    57.14%
TestUtils/TiFlashTestEnv.h                                        25                 3    88.00%           6                 0   100.00%          46                 5    89.13%          16                 3    81.25%
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                          12357              3354    72.86%         314               103    67.20%        6092              1174    80.73%        4112              2018    50.92%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18225      9787             46.30%    204293  97941        52.06%

full coverage report (for internal network access only)

@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 25, 2022
@hehechen
Copy link
Contributor Author

/merge

@ti-chi-bot
Copy link
Member

@hehechen: 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: 962dad0

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

sre-bot commented May 25, 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                                         512               323    36.91%         166                88    46.99%        1126               693    38.45%         272               205    24.63%
Server/tests/gtest_server_config.cpp                            2186               351    83.94%          10                 0   100.00%         423                 3    99.29%         676               335    50.44%
Storages/DeltaMerge/tests/gtest_dm_delta_merge_store.cpp        6851              1829    73.30%          47                 1    97.87%        3059               103    96.63%        2262              1013    55.22%
Storages/Page/PageStorage.h                                       19                 2    89.47%          19                 2    89.47%          85                 4    95.29%           0                 0         -
Storages/Page/V3/tests/gtest_page_storage_mix_mode.cpp          1504               404    73.14%          14                 0   100.00%         406                21    94.83%         442               226    48.87%
Storages/Transaction/tests/gtest_region_persister.cpp           1011               328    67.56%          17                 3    82.35%         391               117    70.08%         284               148    47.89%
TestUtils/TiFlashTestEnv.cpp                                      25                 4    84.00%           4                 0   100.00%          65                 9    86.15%          14                 6    57.14%
TestUtils/TiFlashTestEnv.h                                        25                 3    88.00%           6                 0   100.00%          46                 5    89.13%          16                 3    81.25%
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                          12133              3244    73.26%         283                94    66.78%        5601               955    82.95%        3966              1936    51.19%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18256      9788             46.38%    204413  97994        52.06%

full coverage report (for internal network access only)

@ti-chi-bot ti-chi-bot merged commit 0f56b15 into pingcap:master May 25, 2022
hehechen added a commit that referenced this pull request May 27, 2022
@hehechen hehechen mentioned this pull request May 27, 2022
12 tasks
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/L Denotes a PR that changes 100-499 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
6 participants