From c896a76c9f65f31d5e5d43017725c94f5da77d4f Mon Sep 17 00:00:00 2001 From: oceanoverflow Date: Thu, 15 Dec 2022 04:37:46 +0000 Subject: [PATCH] fix restore while migration issue --- src/storage/high_availability/ob_tablet_group_restore.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/storage/high_availability/ob_tablet_group_restore.cpp b/src/storage/high_availability/ob_tablet_group_restore.cpp index 57dcf7af6d..42fcb1885b 100644 --- a/src/storage/high_availability/ob_tablet_group_restore.cpp +++ b/src/storage/high_availability/ob_tablet_group_restore.cpp @@ -2643,8 +2643,10 @@ int ObTabletRestoreTask::check_src_sstable_exist_() } } else if (ObTabletRestoreAction::is_restore_major(tablet_restore_ctx_->action_)) { if (!is_major_sstable_exist && tablet->get_tablet_meta().table_store_flag_.with_major_sstable()) { - ret = OB_SSTABLE_NOT_EXIST; - LOG_WARN("src restore sstable do not exist", K(ret), K(copy_table_key_array_), KPC(tablet_restore_ctx_)); + if (tablet->get_table_store().get_major_sstables().empty()) { + ret = OB_SSTABLE_NOT_EXIST; + LOG_WARN("src restore sstable do not exist", K(ret), K(copy_table_key_array_), KPC(tablet_restore_ctx_)); + } } } }