Fix blobstore truncate size may not right#5127
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. |
Signed-off-by: JaySon-Huang <tshent@qq.com>
|
And I think we can also add more info to this exception below. Like read_offset. |
@flowbehappy Already added and merged into master in this PR: https://github.com/pingcap/tiflash/pull/5094/files |
|
PTAL at this jiaqizho#1 |
Co-authored-by: JaySon <tshent@qq.com>
Make log more friendly for TiDB Cloud es log service
JaySon-Huang
left a comment
There was a problem hiding this comment.
polish some comments.
Co-authored-by: JaySon <tshent@qq.com>
Co-authored-by: JaySon <tshent@qq.com>
Co-authored-by: JaySon <tshent@qq.com>
Co-authored-by: JaySon <tshent@qq.com>
Co-authored-by: JaySon <tshent@qq.com>
|
/merge |
|
@jiaqizho: 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: fcdfb46 |
Coverage for changed filesCoverage summaryfull coverage report (for internal network access only) |
|
@jiaqizho: 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. |
Coverage for changed filesCoverage summaryfull coverage report (for internal network access only) |
|
In response to a cherrypick label: new pull request created: #5147. |
What problem does this PR solve?
Issue Number: close #5076 , close #5134
Problem Summary:
DB::Exception: No enough data in file /data0/db/page/log/blobfile_6, read bytes: 0 , expected bytes: 43getGcStats,BlobStorewill call thegetRightMarginto get thelast free spaceand truncate the file.getRightMarginwill return a invalid value iflast free spaceis not align toend.getRightMargingetRightMargin, we will get the last free space, and return it start.What is changed and how it works?
getRightMarginCheck List
Tests
Side effects
Documentation
Release note