Skip to content
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

feat(backup): 2. update and refactor meta backup engine class #1102

Merged
merged 4 commits into from
Aug 11, 2022

Conversation

hycdong
Copy link
Contributor

@hycdong hycdong commented Aug 4, 2022

#1081
As the issue shows, meta_backup_engine will intertact with replica server and contorl backup lifecycle and status switch. This pr is the first part about it, including:

  • update init_backup and start functions
  • update backup_status and backup_item structures
  • update varieties of meta_backup_engine.h
  • rename backup_engine into meta_backup_engine
  • refactor meta_backup_engine.h including public/private, function definition order etc.

src/rdsn/src/common/backup.thrift Show resolved Hide resolved
src/rdsn/src/common/backup.thrift Show resolved Hide resolved
src/rdsn/src/meta/meta_backup_engine.h Show resolved Hide resolved
src/rdsn/src/meta/meta_backup_engine.cpp Outdated Show resolved Hide resolved
src/rdsn/src/common/backup.thrift Outdated Show resolved Hide resolved
@foreverneverer
Copy link
Contributor

github-actions bot added cpp thrift labels 5 days ago

The action can add more detail info, for example, we update src/backup folder, it can add backup label? @acelyc111

@acelyc111
Copy link
Member

github-actions bot added cpp thrift labels 5 days ago

The action can add more detail info, for example, we update src/backup folder, it can add backup label? @acelyc111

It depends on the source code are well organized, but currently they are not, we can do that after several refactors.

Copy link
Member

@acelyc111 acelyc111 left a comment

Choose a reason for hiding this comment

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

LGTM

@acelyc111
Copy link
Member

the failed test case meta_bulk_load_http_test.start_compaction_test is not related (has been issued by #1060), we can fix it later.

@hycdong hycdong merged commit abd52ae into apache:backup_restore-dev Aug 11, 2022
@hycdong hycdong deleted the backup_2 branch August 11, 2022 04:14
ZhongChaoqiang pushed a commit to ZhongChaoqiang/incubator-pegasus that referenced this pull request Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants