-
Notifications
You must be signed in to change notification settings - Fork 12k
[ISSUE #1397]Add abnormal recover for dleger modle #1405
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
Conversation
| long mappedFileOffset = 0; | ||
| while (true) { | ||
| DispatchRequest dispatchRequest = this.checkMessageAndReturnSize(byteBuffer, checkCRCOnRecover); | ||
| int size = dispatchRequest.getMsgSize(); |
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.
This size does not contain dledger header, causing the processOffset to be wrong. Maybe should add DLedgerEntry.BODY_OFFSET.
| } | ||
| //Indicate that, it is the first time to load mixed commitlog, need to recover the old commitlog | ||
| isInrecoveringOldCommitlog = true; | ||
| //No need the abnormal recover |
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.
Comment and code are inconsistent.
| } | ||
|
|
||
| private void recover(long maxPhyOffsetOfConsumeQueue) { | ||
| private void recoverDlegerAbnormally(long maxPhyOffsetOfConsumeQueue) { |
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.
Dledger misspelled.
|
I'm sry but is this patch merged? |
What is the purpose of the change
Add abnormal recover for dleger modle, fix the issue 1397
Brief changelog
Verifying this change
XXXX
Follow this checklist to help us incorporate your contribution quickly and easily. Notice,
it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.[ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyleto make sure basic checks pass. Runmvn clean install -DskipITsto make sure unit-test pass. Runmvn clean test-compile failsafe:integration-testto make sure integration-test pass.