fix backup check tablet continuity performance issue

This commit is contained in:
oceanoverflow
2023-12-20 05:43:43 +00:00
committed by ob-robot
parent d0bc6d797e
commit 8bb556a3ba
7 changed files with 359 additions and 190 deletions

View File

@ -496,9 +496,11 @@ private:
const ObBackupProviderItem &item, bool &need_copy, ObBackupMacroBlockIndex &macro_index);
int generate_next_prefetch_dag_();
int generate_backup_dag_(const int64_t task_id, const common::ObIArray<ObBackupProviderItem> &items);
void record_server_event_(const int64_t cost_us);
private:
bool is_inited_;
int64_t prefetch_task_id_;
ObLSBackupDagInitParam param_;
ObBackupReportCtx report_ctx_;
share::ObBackupDataType backup_data_type_;
@ -509,6 +511,8 @@ private:
ObBackupMacroBlockIndexStore macro_index_store_for_inc_;
ObBackupMacroBlockIndexStore macro_index_store_for_turn_;
share::ObIDag *index_rebuild_dag_;
int64_t next_prefetch_task_id_;
int64_t next_backup_task_id_;
DISALLOW_COPY_AND_ASSIGN(ObPrefetchBackupInfoTask);
};
@ -528,6 +532,8 @@ private:
private:
int build_backup_file_header_(ObBackupFileHeader &file_header);
int do_write_file_header_();
int get_check_tablet_list_(common::ObIArray<ObTabletID> &tablet_list);
int do_check_tablet_valid_();
int do_backup_macro_block_data_();
int do_backup_meta_data_();
int get_tablet_meta_info_(
@ -595,6 +601,7 @@ private:
common::ObArray<ObBackupProviderItem> backup_items_;
common::ObArray<common::ObTabletID> finished_tablet_list_;
share::ObIDag *index_rebuild_dag_;
int64_t next_prefetch_task_id_;
DISALLOW_COPY_AND_ASSIGN(ObLSBackupDataTask);
};