This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new 993ef83cfeb branch-4.0: [fix](recycler) Avoiding Null Pointer
Dereference When Calling check_meta #56653 (#56775)
993ef83cfeb is described below
commit 993ef83cfeb96f4823267403c24164452414df89
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat Oct 11 16:56:57 2025 +0800
branch-4.0: [fix](recycler) Avoiding Null Pointer Dereference When Calling
check_meta #56653 (#56775)
Cherry-picked from #56653
Co-authored-by: Yixuan Wang <[email protected]>
---
cloud/src/recycler/recycler_service.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/cloud/src/recycler/recycler_service.cpp
b/cloud/src/recycler/recycler_service.cpp
index b2cd9712a4f..1c50af16bcb 100644
--- a/cloud/src/recycler/recycler_service.cpp
+++ b/cloud/src/recycler/recycler_service.cpp
@@ -656,10 +656,6 @@ void
RecyclerServiceImpl::http(::google::protobuf::RpcController* controller,
auto port = uri.GetQuery("port");
auto user = uri.GetQuery("user");
auto password = uri.GetQuery("password");
- LOG(INFO) << " host " << *host;
- LOG(INFO) << " port " << *port;
- LOG(INFO) << " user " << *user;
- LOG(INFO) << " instance " << *instance_id;
if (instance_id == nullptr || instance_id->empty() || host == nullptr
|| host->empty() ||
port == nullptr || port->empty() || password == nullptr || user ==
nullptr ||
user->empty()) {
@@ -668,6 +664,10 @@ void
RecyclerServiceImpl::http(::google::protobuf::RpcController* controller,
status_code = 400;
return;
}
+ LOG(INFO) << " host " << *host;
+ LOG(INFO) << " port " << *port;
+ LOG(INFO) << " user " << *user;
+ LOG(INFO) << " instance " << *instance_id;
check_meta(txn_kv_, *instance_id, *host, *port, *user, *password, msg);
status_code = 200;
response_body = msg;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]