Skip to content

Commit

Permalink
use get_client(host, port) for dnscache
Browse files Browse the repository at this point in the history
  • Loading branch information
kaijchen committed Aug 29, 2024
1 parent a396453 commit 01a3174
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions be/src/vec/sink/load_stream_stub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ Status LoadStreamStub::open(BrpcClientCache<PBackendService_Stub>* client_cache,
return _init_st;
}
_dst_id = node_info.id;
std::string host_port = get_host_port(node_info.host, node_info.brpc_port);
brpc::StreamOptions opt;
opt.max_buf_size = config::load_stream_max_buf_size;
opt.idle_timeout_ms = idle_timeout_ms;
Expand Down Expand Up @@ -185,7 +184,7 @@ Status LoadStreamStub::open(BrpcClientCache<PBackendService_Stub>* client_cache,
}
POpenLoadStreamResponse response;
// set connection_group "streaming" to distinguish with non-streaming connections
const auto& stub = client_cache->get_client(host_port);
const auto& stub = client_cache->get_client(node_info.host, node_info.brpc_port);
if (stub == nullptr) {
return Status::InternalError("failed to init brpc client to {}", host_port);
}
Expand All @@ -203,7 +202,8 @@ Status LoadStreamStub::open(BrpcClientCache<PBackendService_Stub>* client_cache,
cntl.ErrorText());
return _init_st;
}
LOG(INFO) << "open load stream to " << host_port << ", " << *this;
LOG(INFO) << "open load stream to host=" << node_info.host << ", port=" << node_info.brpc_port
<< ", " << *this;
_is_init.store(true);
return Status::OK();
}
Expand Down

0 comments on commit 01a3174

Please sign in to comment.