From 6c937ccec9b50cc047e79083d5c455af8b446b35 Mon Sep 17 00:00:00 2001 From: LYAccc Date: Wed, 6 Nov 2024 13:44:31 +0000 Subject: [PATCH] move the shared_storage_mode check to the upper layer in auto split route --- src/share/scheduler/ob_partition_auto_split_helper.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/share/scheduler/ob_partition_auto_split_helper.cpp b/src/share/scheduler/ob_partition_auto_split_helper.cpp index de7641ca61..55fb92ba39 100644 --- a/src/share/scheduler/ob_partition_auto_split_helper.cpp +++ b/src/share/scheduler/ob_partition_auto_split_helper.cpp @@ -646,6 +646,9 @@ int ObServerAutoSplitScheduler::check_and_fetch_tablet_split_info(const storage: } else if (OB_ISNULL(tablet = tablet_handle.get_obj())) { ret = OB_ERR_UNEXPECTED; LOG_WARN("pointer to tablet is nullptr", K(ret), KP(tablet)); + } else if ((GCTX.is_shared_storage_mode())) { + ret = OB_NOT_SUPPORTED; + LOG_DEBUG("split in shared storage mode not supported", K(ret)); } else if (OB_FAIL(tablet->ObITabletMdsInterface::cross_ls_get_latest(ReadSplitDataAutoPartSizeOp(auto_split_tablet_size), is_committed))) { if (OB_EMPTY_RESULT == ret) { ret = OB_SUCCESS; @@ -715,7 +718,9 @@ int ObServerAutoSplitScheduler::push_task(const storage::ObTabletHandle &tablet_ ret = OB_INVALID_ARGUMENT; LOG_WARN("invalid argument", K(ret), K(tablet_handle)); } else if (OB_FAIL(check_and_fetch_tablet_split_info(tablet_handle, ls, can_split, task))) { - LOG_WARN("failed to check and fetch tablet split info", K(ret), K(task)); + if (OB_UNLIKELY(OB_NOT_SUPPORTED != ret)) { + LOG_WARN("failed to check and fetch tablet split info", K(ret), K(task)); + } } else if (can_split && OB_FAIL(task_array.push_back(task))) { LOG_WARN("task_array push back failed" , K(ret), K(task_array)); } else if (can_split && OB_FAIL(polling_manager_.push_tasks(task_array))) {