From 27516623a2aa1115c364457065cde1e7abb99cf3 Mon Sep 17 00:00:00 2001 From: Doodle <13706157+critical27@users.noreply.github.com> Date: Mon, 15 Mar 2021 18:52:14 +0800 Subject: [PATCH] fix nullptr client (#452) --- src/common/thrift/ThriftClientManager.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/thrift/ThriftClientManager.inl b/src/common/thrift/ThriftClientManager.inl index 4bdc834ca..8f0bc1c29 100644 --- a/src/common/thrift/ThriftClientManager.inl +++ b/src/common/thrift/ThriftClientManager.inl @@ -61,8 +61,8 @@ std::shared_ptr ThriftClientManager::client( oss << resolved; LOG(INFO) << oss.str(); } catch(const std::exception& e) { + // if we resolve failed, just return a connection, we will retry later LOG(ERROR) << e.what(); - return nullptr; } }