From d225c70101da01c9f99b6448b498823c6574cca9 Mon Sep 17 00:00:00 2001 From: JiahuaChen Date: Mon, 6 Jun 2022 14:21:36 +0800 Subject: [PATCH] [CP] Fix core when partition service stopped --- src/storage/ob_partition_service.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/storage/ob_partition_service.cpp b/src/storage/ob_partition_service.cpp index b54ec98ccf..a8cfd352eb 100644 --- a/src/storage/ob_partition_service.cpp +++ b/src/storage/ob_partition_service.cpp @@ -2297,6 +2297,8 @@ int ObPartitionService::create_batch_partition_groups( tmp_ret = remove_pg_from_mgr(rb_pg, true/*write_slog*/); if (OB_SUCCESS == tmp_ret) { // partition object was released by partition service, do nothing + } else if (OB_NOT_RUNNING == tmp_ret) { + // partition service was stopped, ignore } else { STORAGE_LOG(ERROR, "fail to rollback pg", K(tmp_ret), K(rb_pkey), K(rb_pg)); ob_abort();