PageStorage: Report the file usage of BlobStore#4999
PageStorage: Report the file usage of BlobStore#4999ti-chi-bot merged 11 commits intopingcap:masterfrom
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. DetailsReviewer can indicate their review by submitting an approval review. |
3f22da2 to
47c1e83
Compare
Signed-off-by: JaySon-Huang <tshent@qq.com>
Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
47c1e83 to
c0561ac
Compare
Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
| else | ||
| { | ||
| // Else the stat may being updated, acquire a lock to avoid data race. | ||
| auto lock = stat->lock(); |
There was a problem hiding this comment.
Can this lock be removed? we mat not need an exact value.
There was a problem hiding this comment.
- Running under TSan may complain about that
- We want a consistent value that total_size > valid size. Without lock, we may meet total_size < valid size, which is confusing
- The frequency of calling getFileUsageStatistics is very low, call it only once every 30s
So I would rather keep the lock here
Signed-off-by: JaySon-Huang <jayson.hjs@gmail.com>
|
/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. DetailsInstructions 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. DetailsCommit hash: a0dcfc7 |
|
@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. DetailsInstructions 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. |
|
/run-unit-test |
Coverage for changed filesCoverage summaryfull coverage report (for internal network access only) |
|
In response to a cherrypick label: new pull request created: #5027. |
Signed-off-by: JaySon-Huang tshent@qq.com
What problem does this PR solve?
Issue Number: close #4922
Problem Summary: Report the file size, valid data size, file num of all PageStorage instances in a TiFlash node
What is changed and how it works?
AsynchronousMetrics::updateCheck List
Tests
Side effects
Documentation
Release note