From b80ac31fb08ea7ab9659d269d4e1ebe16d497331 Mon Sep 17 00:00:00 2001 From: godyangfight Date: Thu, 6 Jul 2023 03:23:48 +0000 Subject: [PATCH] Fix migration using wrong dag parent to create task --- src/storage/high_availability/ob_ls_migration.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/storage/high_availability/ob_ls_migration.cpp b/src/storage/high_availability/ob_ls_migration.cpp index 8a6b5e70da..7e5768d5a9 100644 --- a/src/storage/high_availability/ob_ls_migration.cpp +++ b/src/storage/high_availability/ob_ls_migration.cpp @@ -2570,6 +2570,8 @@ int ObTabletMigrationTask::generate_physical_copy_task_( } else if (!is_tablet_exist) { if (OB_FAIL(tablet_copy_finish_task->set_tablet_status(ObCopyTabletStatus::TABLET_NOT_EXIST))) { LOG_WARN("failed to set tablet status", K(ret), K(copy_table_key), KPC(copy_tablet_ctx_)); + } else if (OB_FAIL(parent_task->add_child(*child_task))) { + LOG_WARN("failed to add chiild task", K(ret), KPC(copy_tablet_ctx_), K(copy_table_key)); } } else { if (FALSE_IT(init_param.tenant_id_ = ctx_->tenant_id_)) {