From 05a528a6dd1f56f3f5202977e647fb75dfe67e01 Mon Sep 17 00:00:00 2001 From: YoungYang0820 Date: Mon, 13 Sep 2021 14:19:59 +0800 Subject: [PATCH] change submit build global index task fail error code --- src/rootserver/ob_index_builder.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/rootserver/ob_index_builder.cpp b/src/rootserver/ob_index_builder.cpp index ce3f4153f0..dd0c2771c9 100644 --- a/src/rootserver/ob_index_builder.cpp +++ b/src/rootserver/ob_index_builder.cpp @@ -1317,11 +1317,12 @@ int ObIndexBuilder::submit_build_global_index_task(const ObTableSchema& index_sc LOG_WARN("fail to get index schema", K(ret)); } else if (OB_FAIL( GCTX.root_service_->get_global_index_builder().submit_build_global_index_task(inner_index_schema))) { - LOG_WARN("fail to submit build global index task", K(ret)); + if (OB_NOT_INIT == ret) { + ret = OB_EAGAIN; + } } if (OB_FAIL(ret)) { - ret = OB_ERR_UNEXPECTED; - LOG_USER_ERROR(OB_ERR_UNEXPECTED, "create global index failed, please drop and create another one"); + FORWARD_USER_ERROR(ret, "create global index failed, please drop and create another one"); } } return ret; -- GitLab