-
Notifications
You must be signed in to change notification settings - Fork 411
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
Fix blobstore truncate size may not right #5127
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. Reviewer can indicate their review by submitting an approval review. |
Signed-off-by: JaySon-Huang <[email protected]>
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 <[email protected]>
Make log more friendly for TiDB Cloud es log service
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.
polish some comments.
Co-authored-by: JaySon <[email protected]>
Co-authored-by: JaySon <[email protected]>
Co-authored-by: JaySon <[email protected]>
Co-authored-by: JaySon <[email protected]>
Co-authored-by: JaySon <[email protected]>
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
/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. 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: fcdfb46
|
Coverage for changed files
Coverage summary
full 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. 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: #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: 43
getGcStats
,BlobStore
will call thegetRightMargin
to get thelast free space
and truncate the file.getRightMargin
will return a invalid value iflast free space
is not align toend
.getRightMargin
getRightMargin
, we will get the last free space, and return it start.What is changed and how it works?
getRightMargin
Check List
Tests
Side effects
Documentation
Release note