-
Notifications
You must be signed in to change notification settings - Fork 410
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
PageStorage: Fine grained lock on external callbacks #5699
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/run-all-tests |
/run-unit-test |
/run-all-tests |
1 similar comment
/run-all-tests |
This comment was marked as outdated.
This comment was marked as outdated.
f5f8e79
to
0899227
Compare
/run-all-tests |
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with minor comment
71d36e1
to
8b3461d
Compare
Signed-off-by: JaySon-Huang <tshent@qq.com>
/run-all-tests |
Coverage for changed files
Coverage summary
full coverage report (for internal network access only) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
Coverage for changed files
Coverage summary
full coverage report (for internal network access only) |
/merge |
@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 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. |
This pull request has been accepted and is ready to merge. Commit hash: 7091e1a
|
@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. |
Coverage for changed files
Coverage summary
full coverage report (for internal network access only) |
In response to a cherrypick label: new pull request created: #5785. |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created: #5786. |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
What problem does this PR solve?
Issue Number: close #5697
Problem Summary:
The GC total time in logging does not include the time costs in
clean_external_page
.In
PageStorageImpl::gcImpl
clean_external_page
, we hold thecallbacks_mutex
until all external page gc done.tiflash/dbms/src/Storages/Page/V3/PageStorageImpl.cpp
Lines 287 to 298 in 7acf7f5
while the time cost in
clean_external_page
is not ignorable and may block new StorageDeltaMerge from being createdtiflash/dbms/src/Storages/Page/V3/PageStorageImpl.cpp
Lines 400 to 408 in 7acf7f5
tiflash/dbms/src/Storages/DeltaMerge/DeltaMergeStore.cpp
Lines 342 to 343 in 7acf7f5
What is changed and how it works?
cleanExternalPage
.Problem not yet resolve in this PR
Check List
Tests
Side effects
Documentation
Release note