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

Tiflash pagectl support encrypted data #5003

Merged
merged 9 commits into from
Jun 1, 2022

Conversation

hehechen
Copy link
Contributor

@hehechen hehechen commented May 26, 2022

What problem does this PR solve?

Issue Number: close #4962

Problem Summary:

What is changed and how it works?

Make page-ctl (including V2 and V3) a subcommand of tiflash binary, tiflash pagectl -V 2/3
Make page-ctl V3 can dump the encrypted data, add two options: imitative and config_file_path
image
image
image
image

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

Signed-off-by: hehechen <awd123456sss@gmail.com>
Signed-off-by: hehechen <awd123456sss@gmail.com>
@ti-chi-bot
Copy link
Member

ti-chi-bot commented May 26, 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/work-in-progress Indicates that a PR should not merge because it is a work in progress. 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 26, 2022
Signed-off-by: hehechen <awd123456sss@gmail.com>
@hehechen hehechen changed the title [WIP] Tiflash pagectl support encrypted data Tiflash pagectl support encrypted data May 27, 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 27, 2022
@hehechen hehechen requested a review from lidezhu May 30, 2022 03:51
@hehechen
Copy link
Contributor Author

/run-all-tests

@jiaqizho
Copy link
Contributor

image

please format this PR, put the pics into right position.

@hehechen
Copy link
Contributor Author

/run-unit-test

@sre-bot
Copy link
Collaborator

sre-bot commented May 31, 2022

Coverage for changed files

Filename                               Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Server/CLIService.h                         37                37     0.00%           7                 7     0.00%         109               109     0.00%          24                24     0.00%
Server/DTTool/DTTool.h                       5                 5     0.00%           5                 5     0.00%          44                44     0.00%           0                 0         -
Storages/Page/V3/BlobStore.h                10                 2    80.00%          10                 2    80.00%          46                23    50.00%           0                 0         -
Storages/Page/V3/PageDirectory.h            25                 3    88.00%          25                 3    88.00%         104                10    90.38%           0                 0         -
Storages/Page/V3/PageStorageImpl.h           8                 2    75.00%           8                 2    75.00%          22                 2    90.91%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                       85                49    42.35%          55                19    65.45%         325               188    42.15%          24                24     0.00%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18220      9784             46.30%    203962  97976        51.96%

full coverage report (for internal network access only)

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

hehechen commented Jun 1, 2022

/rebuild

Copy link
Contributor

@JaySon-Huang JaySon-Huang 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 small comment

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

hehechen commented Jun 1, 2022

/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: 66562c3

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

sre-bot commented Jun 1, 2022

Coverage for changed files

Filename                               Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Server/CLIService.h                         37                37     0.00%           7                 7     0.00%         109               109     0.00%          24                24     0.00%
Server/DTTool/DTTool.h                       5                 5     0.00%           5                 5     0.00%          44                44     0.00%           0                 0         -
Storages/Page/V3/BlobStore.h                12                 2    83.33%          10                 2    80.00%          50                23    54.00%           2                 0   100.00%
Storages/Page/V3/PageDirectory.h            25                 3    88.00%          25                 3    88.00%         104                10    90.38%           0                 0         -
Storages/Page/V3/PageStorageImpl.h           8                 2    75.00%           8                 2    75.00%          22                 2    90.91%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                       87                49    43.68%          55                19    65.45%         329               188    42.86%          26                24     7.69%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18282      9779             46.51%    204998  97995        52.20%

full coverage report (for internal network access only)

@sre-bot
Copy link
Collaborator

sre-bot commented Jun 1, 2022

Coverage for changed files

Filename                               Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Server/CLIService.h                         37                37     0.00%           7                 7     0.00%         109               109     0.00%          24                24     0.00%
Server/DTTool/DTTool.h                       5                 5     0.00%           5                 5     0.00%          44                44     0.00%           0                 0         -
Storages/Page/V3/BlobStore.h                12                 2    83.33%          10                 2    80.00%          50                23    54.00%           2                 0   100.00%
Storages/Page/V3/PageDirectory.h            25                 3    88.00%          25                 3    88.00%         104                10    90.38%           0                 0         -
Storages/Page/V3/PageStorageImpl.h           8                 2    75.00%           8                 2    75.00%          22                 2    90.91%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                       87                49    43.68%          55                19    65.45%         329               188    42.86%          26                24     7.69%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18282      9734             46.76%    204967  97603        52.38%

full coverage report (for internal network access only)

Signed-off-by: hehechen <awd123456sss@gmail.com>
@ti-chi-bot ti-chi-bot removed the status/can-merge Indicates a PR has been approved by a committer. label Jun 1, 2022
@hehechen
Copy link
Contributor Author

hehechen commented Jun 1, 2022

/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: c7dc2e6

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

sre-bot commented Jun 1, 2022

Coverage for changed files

Filename                               Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Server/CLIService.h                         37                37     0.00%           7                 7     0.00%         109               109     0.00%          24                24     0.00%
Server/DTTool/DTTool.h                       5                 5     0.00%           5                 5     0.00%          44                44     0.00%           0                 0         -
Storages/Page/V3/BlobStore.h                12                 2    83.33%          10                 2    80.00%          50                23    54.00%           2                 0   100.00%
Storages/Page/V3/PageDirectory.h            25                 3    88.00%          25                 3    88.00%         104                10    90.38%           0                 0         -
Storages/Page/V3/PageStorageImpl.h           8                 2    75.00%           8                 2    75.00%          22                 2    90.91%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                       87                49    43.68%          55                19    65.45%         329               188    42.86%          26                24     7.69%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18282      9732             46.77%    204967  97580        52.39%

full coverage report (for internal network access only)

@ti-chi-bot ti-chi-bot merged commit 187a591 into pingcap:master Jun 1, 2022
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.

page_ctl does not support read encryption files.
6 participants