LHG41278 commented on code in PR #22048:
URL: https://github.com/apache/doris/pull/22048#discussion_r1302920284
##########
be/src/agent/task_worker_pool.cpp:
##########
@@ -1176,6 +1179,22 @@ void
TaskWorkerPool::_push_storage_policy_worker_thread_callback() {
.tag("s3_conf", s3_conf.to_string());
put_storage_resource(resource.id, {std::move(fs),
resource.version});
}
+ } else if (resource.__isset.hdfs_storage_param) {
+ Status st;
+ std::shared_ptr<io::HdfsFileSystem> fs;
+ if (existed_resource.fs == nullptr) {
+ st =
io::HdfsFileSystem::create(resource.hdfs_storage_param, "", nullptr, &fs);
+ } else {
+ fs =
std::static_pointer_cast<io::HdfsFileSystem>(existed_resource.fs);
+ }
+ if (!st.ok()) {
+ LOG(WARNING) << "update hdfs resource failed: " << st;
+ } else {
+ LOG_INFO("successfully update hdfs resource")
+ .tag("resource_id", resource.id)
+ .tag("resource_name", resource.name);
Review Comment:
The log for updating the S3 storage resource shows 'successfully updating S3
resource', but the log for updating the HDFS resource shows 'successfully
updating HDFS resource', which is different.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]