From ce71f6c3d96f5432730a53695ea680f080757de8 Mon Sep 17 00:00:00 2001 From: obdev Date: Mon, 13 Feb 2023 04:14:44 +0000 Subject: [PATCH] fix the error of high_prio_rpc_shutdown when observer stop --- deps/oblib/src/rpc/frame/ob_net_easy.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deps/oblib/src/rpc/frame/ob_net_easy.cpp b/deps/oblib/src/rpc/frame/ob_net_easy.cpp index 8a73d266f..7c680a024 100644 --- a/deps/oblib/src/rpc/frame/ob_net_easy.cpp +++ b/deps/oblib/src/rpc/frame/ob_net_easy.cpp @@ -921,9 +921,11 @@ int ObNetEasy::rpc_shutdown() int ObNetEasy::high_prio_rpc_shutdown() { int ret = OB_SUCCESS; - if (!started_ || !is_inited_ || OB_ISNULL(high_prio_rpc_eio_)) { + if (!started_ || !is_inited_) { ret = OB_ERR_UNEXPECTED; LOG_WARN("easy net hasn't started", K(ret)); + } else if (OB_ISNULL(high_prio_rpc_eio_)) { + LOG_INFO("user does not start high priority net threads"); } else { int eret = easy_eio_shutdown(high_prio_rpc_eio_); if (eret != EASY_OK) {