Skip to content

[Feature] Support recording custom number of backup and restore task information - #5947

Merged
yangzhg merged 11 commits into
apache:masterfrom
e0c9:supprot-multi-backup-record
Jun 22, 2021
Merged

[Feature] Support recording custom number of backup and restore task information#5947
yangzhg merged 11 commits into
apache:masterfrom
e0c9:supprot-multi-backup-record

Conversation

@e0c9

@e0c9e0c9 commented May 31, 2021

Copy link
Copy Markdown
Contributor

Proposed changes

Doris currently only supports saving the last backup/restore task information. This PR supports to save a custom number of task information.

SQL Syntax

SHOW backup/restore FROM dbname [WHERE LABEL ="" | WHERE LABEL LIKE"matcher"]

Lark20210531-182218

Types of changes

What types of changes does your code introduce to Doris?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)
  • Code refactor (Modify the code structure, format the code, etc...)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have created an issue on (Fix #ISSUE) and described the bug/feature there in detail
  • Compiling and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • If these changes need document changes, I have updated the document
  • Any dependent changes have been merged

@e0c9e0c9 changed the title Support recording custom number of backup and restore task information[Feature] Support recording custom number of backup and restore task informationJun 3, 2021
@morningmanmorningman self-assigned this Jun 5, 2021
Comment threadfe/fe-core/src/main/java/org/apache/doris/backup/BackupHandler.java Outdated
Comment threadfe/fe-core/src/main/java/org/apache/doris/common/Config.java Outdated
Comment threadfe/fe-core/src/main/java/org/apache/doris/backup/BackupHandler.java Outdated
Comment threadfe/fe-core/src/main/java/org/apache/doris/backup/BackupHandler.java Outdated
@e0c9
e0c9 requested a review from morningmanJune 18, 2021 07:32
Comment threadfe/fe-core/src/main/java/org/apache/doris/backup/BackupHandler.java Outdated
@e0c9
e0c9 requested a review from morningmanJune 18, 2021 12:44

@morningmanmorningman 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 approved Indicates a PR has been approved by one committer. area/backup Issues of PRS related to backup and restore labels Jun 20, 2021
@yangzhg
yangzhg merged commit b9ad347 into apache:masterJun 22, 2021
stalary pushed a commit to stalary/doris that referenced this pull request Jun 28, 2021
…information (apache#5947)
* Record all backup jobs and support where clause
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/backupIssues of PRS related to backup and restorekind/improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@e0c9@morningman@yangzhg