This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 145b94531f [Fix](load) fix request_slave_tablet_pull_rowset get wrong
url in case of ipv6 address (#19026)
145b94531f is described below
commit 145b94531fb4f75015fe0ed300832a63d17d6a1a
Author: TsukiokaKogane <[email protected]>
AuthorDate: Tue May 2 09:55:09 2023 +0800
[Fix](load) fix request_slave_tablet_pull_rowset get wrong url in case of
ipv6 address (#19026)
---
be/src/service/internal_service.cpp | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/be/src/service/internal_service.cpp
b/be/src/service/internal_service.cpp
index ab639e6f29..084edf7079 100644
--- a/be/src/service/internal_service.cpp
+++ b/be/src/service/internal_service.cpp
@@ -89,6 +89,7 @@
#include "util/doris_metrics.h"
#include "util/md5.h"
#include "util/metrics.h"
+#include "util/network_util.h"
#include "util/proto_util.h"
#include "util/ref_count_closure.h"
#include "util/runtime_profile.h"
@@ -1213,9 +1214,9 @@ void
PInternalServiceImpl::request_slave_tablet_pull_rowset(
}
std::stringstream ss;
- ss << "http://" << host << ":" << http_port <<
"/api/_tablet/_download?token=" << token
- << "&file=" << rowset_path << "/" << remote_rowset_id << "_" <<
segment.first
- << ".dat";
+ ss << "http://" << get_host_port(host, http_port)
+ << "/api/_tablet/_download?token=" << token << "&file=" <<
rowset_path << "/"
+ << remote_rowset_id << "_" << segment.first << ".dat";
std::string remote_file_url = ss.str();
ss.str("");
ss << tablet->tablet_path() << "/" << rowset_meta->rowset_id() <<
"_" << segment.first
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]