Skip to content

[Tablet][Recovery] Support using empty tablet to repair the damaged or missing tablet - #4255

Merged
morningman merged 4 commits into
apache:masterfrom
morningman:force_recovery
Aug 18, 2020
Merged

[Tablet][Recovery] Support using empty tablet to repair the damaged or missing tablet#4255
morningman merged 4 commits into
apache:masterfrom
morningman:force_recovery

Conversation

@morningman

@morningmanmorningman commented Aug 5, 2020

Copy link
Copy Markdown
Contributor

Proposed changes

In some very special circumstances, such as code bugs, or human misoperation, etc., all replicas of some tablets may be lost. In this case, the data has been substantially lost. However, in some scenarios, the business still hopes to ensure that the query will not report errors even if there is data loss, and reduce the perception of the user layer. At this point, we can use the blank Tablet to fill the missing replica to ensure that the query can be executed normally.

Add a new FE config recover_with_empty_tablet. default is false. true means to use empty tablet to fill the missing one.

Also fix a bug in Fix#4274

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Documentation Update (if none of the other choices apply)

Checklist

@morningmanmorningman added kind/improvement area/catalog Issues or PRs related to catalog management labels Aug 5, 2020
@morningmanmorningman self-assigned this Aug 5, 2020
EmmyMiao87
EmmyMiao87 previously approved these changes Aug 17, 2020

@EmmyMiao87EmmyMiao87 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@morningmanmorningman added the approved Indicates a PR has been approved by one committer. label Aug 17, 2020

@EmmyMiao87EmmyMiao87 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@morningman
morningman merged commit 3359467 into apache:masterAug 18, 2020
acelyc111 pushed a commit to acelyc111/incubator-doris that referenced this pull request Aug 21, 2020
…r missing tablet (apache#4255)
In some very special circumstances, such as code bugs, or human misoperation, etc.,
all replicas of some tablets may be lost. In this case, the data has been substantially lost.
However, in some scenarios, the business still hopes to ensure that the query will not
report errors even if there is data loss, and reduce the perception of the user layer.
At this point, we can use the blank Tablet to fill the missing replica to ensure that the query can be executed normally.
Add a new FE config `recover_with_empty_tablet`. default is false. true means to use empty tablet to fill the missing one.
Also fix a bug in Fixapache#4274
@yangzhgyangzhg mentioned this pull request Feb 9, 2021
BiteTheDDDDt pushed a commit to BiteTheDDDDt/incubator-doris that referenced this pull request Sep 1, 2025
…the JSON reader was not initialized when the JSON path is specified as '$.’ apache#52211apache#52267 (apache#4255)
Cherry-picked from apache#52267
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approvedIndicates a PR has been approved by one committer.area/catalogIssues or PRs related to catalog managementkind/improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] FE crash when doing checkpoint

2 participants

@morningman@EmmyMiao87